Function at 0x4086d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46280c
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x48370c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
fldz
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
fst dword [ebp - 0x1b0]
mov esi, dword [ebp + 8]
fst dword [ebp - 0x1b4]
fst dword [ebp - 0x1b8]
push 0x104
fst dword [ebp - 0x1bc]
xor ebx, ebx
fst dword [ebp - 0x1a0]
lea edx, [ebp - 0x114]
fst dword [ebp - 0x1a4]
push ebx
fst dword [ebp - 0x1a8]
push edx
fstp dword [ebp - 0x1ac]
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], ecx
call fcn.0040ec20
add esp, 0xc
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408795
sub eax, edi
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x130]
call fcn.00406920
push 1
push 0xffffffffffffffff
lea edx, [ebp - 0x188]
push edx
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x188], 0x5c
call fcn.00404910
push eax
push ebx
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x130]
call fcn.00407a10
push 0x4643bc
push eax
lea ecx, [ebp - 0x168]
push ecx
mov byte [ebp - 4], 1
call fcn.004084d0
push esi
push eax
lea edx, [ebp - 0x14c]
push edx
mov byte [ebp - 4], 2
call fcn.004084d0
add esp, 0x18
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 3
call fcn.00407e10
mov edi, 0x10
cmp dword [ebp - 0x138], edi
jb 0x40883c
mov eax, dword [ebp - 0x14c]
push eax
call fcn.0040e597
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x154], edi
jb 0x40886a
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.0040e597
add esp, 4
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
cmp dword [ebp - 0x170], edi
jb 0x408893
mov edx, dword [ebp - 0x184]
push edx
call fcn.0040e597
add esp, 4
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0x11c], edi
jae 0x4088a7
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0040f9dd
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push bind
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4088f1
cmp dword [ebp - 0x11c], edi
jb 0x40894b
mov edx, dword [ebp - 0x130]
push edx
jmp 0x408943
push ebx
lea eax, [ebp - 0x194]
push eax
push 0x80
lea ecx, [ebp - 0x214]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x190]
mov edx, eax
and edx, 0xffff
mov dword [ecx], edx
mov edx, dword [ebp - 0x18c]
shr eax, 0x10
mov dword [edx], eax
cmp dword [ebp - 0x11c], edi
jb 0x40894b
mov eax, dword [ebp - 0x130]
push eax
call fcn.0040e597
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e729
mov esp, ebp
pop ebp
ret