Function at 0x27504fe6
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ecx, dword [0x275b95f4]
call fcn.27504d3d
mov ebx, eax
push dword [0x275b9610]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov edx, dword [0x275b9610]
mov ecx, eax
call fcn.27504bfd
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
dec ecx
mov eax, dword [str.GP_]
cmp word [edi + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x2750502d
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x27505044
mov edx, ecx
jmp 0x27505057
mov word [edi + ecx*2], 0
lea edx, [ecx - 1]
cmp word [edi + ecx*2 - 4], 0x5c
mov ecx, edx
jne 0x27505044
mov cl, byte [eax]
test cl, cl
je 0x27505072
lea edx, [edi + edx*2]
xor esi, esi
movsx ecx, cl
mov word [edx + esi*2], cx
mov cl, byte [eax + esi + 1]
inc esi
test cl, cl
jne 0x27505062
xor esi, esi
xor eax, eax
inc eax
push esi
push 0x80
push 3
push esi
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x27505218
mov edi, eax
mov edx, dword [0x275b961c]
mov ecx, ebx
call fcn.27504ecd
push esi
push edi
call eax
mov ebp, eax
mov dword [esp + 4], ebx
mov ebx, dword [0x275b95f8]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov edx, dword [0x275b95f8]
mov ecx, eax
call fcn.27504bfd
lea eax, [esp + 0x14]
mov dword [eax], esi
push esi
push eax
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x27505218
mov edi, dword [esp + 4]
mov ebp, dword [esp + 0x14]
add ebp, ebx
mov edx, dword [0x275b95dc]
lea esi, [ebx + edx]
mov eax, dword [ebx + edx]
test eax, eax
je 0x27505112
mov ecx, dword [ebx + edx + 4]
lea edx, [edx + ebx + 8]
add dword [edx], ecx
add edx, 4
dec eax
jne 0x2750510a
mov ebx, dword [0x275b95f0]
lea edx, [esi + ebx + 1]
mov ecx, edi
call fcn.27504ecd
test eax, eax
je 0x27505218
add esi, ebx
movsx ecx, byte [esi]
mov dword [esp], ecx
lea edx, [esi + ecx + 1]
mov ebx, eax
mov ecx, edi
call fcn.27504ecd
mov dword [esp + 4], eax
test eax, eax
je 0x27505218
mov ecx, ebx
add esi, dword [esp]
movsx ebx, byte [esi]
lea eax, [esi + ebx + 1]
push eax
call ecx
test eax, eax
je 0x27505218
mov edi, eax
add esi, ebx
movsx eax, byte [esi]
lea ebx, [esi + eax]
add ebx, dword [0x275b9600]
mov edx, dword [esi + eax + 8]
lea ecx, [ebx + edx]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + 0x3c]
add edi, dword [edi + ecx + 0x2c]
mov eax, dword [esi + eax + 4]
add eax, edi
mov dword [esp], eax
lea eax, [esp + 0x10]
mov dword [eax], 0
push eax
push dword [0x275b95e4]
push edx
push edi
mov esi, dword [esp + 0x14]
call esi
mov ecx, edi
mov edx, ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.27504c3d
add esp, 4
lea eax, [esp + 0x10]
push eax
push dword [eax]
push ebx
push edi
call esi
mov eax, dword [0x275b9624]
cmp byte [eax], 0
je 0x275051f6
xor eax, eax
mov ecx, dword [0x275b9624]
movsx ecx, byte [ecx + eax]
mov word [ebp + eax*2], cx
lea ecx, [eax + 1]
mov edx, dword [0x275b9624]
cmp byte [edx + eax + 1], 0
mov eax, ecx
jne 0x275051d3
jmp 0x275051f8
xor ecx, ecx
mov word [ebp + ecx*2], 0
lea eax, [esp + 0x18]
mov dword [eax + 4], ebp
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov byte [eax + 8], 1
push eax
call dword [esp + 4]
add esp, 4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret