Function at 0x418230
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x134
push ebx
push ebp
mov ebp, dword [esp + 0x140]
push esi
push edi
mov ecx, 5
mov esi, 0x45f11c
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
push 0
mov edi, 0x4f5cfc
rep movsd dword es:[edi], dword [esi]
push 0x8000127
push 3
push 0
push 1
mov ecx, eax
push 0x80000000
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x418900
push 2
push 0
push 0xffffffffffffffc0
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x418323
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x4188f9
push 2
push 0
push 0xffffffffffffffc0
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4182a9
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x40
push 0x4f55a0
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4183c5
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x4188f9
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x40
push 0x4f55a0
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x418340
mov ecx, 4
mov edi, 0x45ff94
mov esi, 0x4f55a0
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x4188f9
mov ecx, 4
mov edi, 0x45ff80
mov esi, 0x4f55d0
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x4188f9
mov eax, dword [0x4f55b0]
test eax, eax
jne 0x4188f9
mov eax, dword [0x4f55c4]
mov ecx, dword [0x4f55cc]
push eax
mov dword [0x466c74], eax
mov dword [0x466cf4], ecx
call fcn.00451b32
add esp, 4
test eax, eax
mov dword [0x466cb4], eax
jne 0x4184b0
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x4188f9
mov ecx, dword [0x466c74]
push ecx
call fcn.00451b32
add esp, 4
test eax, eax
mov dword [0x466cb4], eax
je 0x418430
mov edx, dword [0x4f55c0]
push 0
push 0
push edx
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x418546
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x4188f9
mov ecx, dword [0x4f55c0]
push 0
push 0
push ecx
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4184c7
mov eax, dword [0x466c74]
mov ecx, dword [0x466cb4]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4185f4
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x418801
mov edx, dword [0x466c74]
mov eax, dword [0x466cb4]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x418569
mov eax, dword [0x466cb4]
mov edx, dword [0x466c74]
lea ecx, [eax + edx]
cmp eax, ecx
jae 0x418624
mov edx, dword [0x4f55b8]
add dword [eax + 0xe], edx
mov ecx, dword [0x466c74]
mov edx, dword [0x466cb4]
add eax, 0x16
add edx, ecx
cmp eax, edx
jb 0x418606
mov eax, dword [0x466cf4]
push eax
call fcn.00451b32
add esp, 4
test eax, eax
mov dword [0x466d34], eax
jne 0x4186bf
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x4188f9
mov ecx, dword [0x466cf4]
push ecx
call fcn.00451b32
add esp, 4
test eax, eax
mov dword [0x466d34], eax
je 0x41863f
mov edx, dword [0x4f55c8]
push 0
push 0
push edx
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x418755
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x4188f9
mov ecx, dword [0x4f55c8]
push 0
push 0
push ecx
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4186d6
mov eax, dword [0x466cf4]
mov ecx, dword [0x466d34]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x41885b
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x41882e
mov edx, dword [0x466cf4]
mov eax, dword [0x466d34]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x418778
jmp 0x41885b
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [0x466cb4]
push ecx
call fcn.00451be4
add esp, 4
pop edi
pop esi
pop ebp
mov dword [0x466cb4], 0
xor eax, eax
pop ebx
add esp, 0x134
ret
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [0x466d34]
push ecx
call fcn.00451be4
add esp, 4
pop edi
pop esi
pop ebp
mov dword [0x466d34], 0
xor eax, eax
pop ebx
add esp, 0x134
ret
push 0
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4188e3
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x28]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x4188f9
push 0
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41886d
pop edi
pop esi
pop ebp
mov dword [0x45ff30], ebx
mov eax, 1
pop ebx
add esp, 0x134
ret
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x134
ret