Function at 0x490560
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x150
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x154]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SHChangeNotifyRegister
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4905aa
xor eax, eax
jmp 0x4907b9
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x14]
push eax
push 0xc
lea ecx, [esp + 0x48]
push ecx
push esi
call edi
movzx dx, byte [esp + 0x40]
movzx eax, byte [esp + 0x41]
shl dx, 8
movsx ebp, dx
or ebp, eax
jbe 0x4907ae
lea ebx, [ebx]
cmp ebx, 0x28
jae 0x4907ae
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x10
lea edx, [esp + 0x38]
push edx
push esi
call edi
cmp dword [esp + 0x10], 0x10
jne 0x490615
cmp dword [esp + 0x2c], 0x656d616e
je 0x49062a
inc ebx
cmp ebx, ebp
jb 0x4905e0
jmp 0x4907ae
push ebx
push str.Read_failed_on_table__d_n
call fcn.004a01ce
add esp, 8
push 0xffffffffffffffff
call fcn.0049f300
movzx eax, byte [esp + 0x34]
movzx ecx, byte [esp + 0x35]
movzx edx, byte [esp + 0x36]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x37]
shl eax, 8
or eax, edx
push 0
shl eax, 8
push 0
or eax, ecx
push eax
push esi
call ebx
push 0
lea edx, [esp + 0x14]
push edx
push 6
lea eax, [esp + 0x2c]
push eax
push esi
call edi
movzx cx, byte [esp + 0x22]
movzx dx, byte [esp + 0x23]
shl cx, 8
or cx, dx
movzx ebp, cx
test bp, bp
je 0x4907ae
push 0
lea eax, [esp + 0x14]
push eax
push 0xc
lea ecx, [esp + 0x20]
push ecx
push esi
add ebp, 0xffff
call edi
push 1
push 0
push 0
push esi
call ebx
movzx dx, byte [esp + 0x14]
movzx ax, byte [esp + 0x15]
shl dx, 8
or dx, ax
cmp dx, 1
jne 0x4906dd
movzx cx, byte [esp + 0x1a]
movzx dx, byte [esp + 0x1b]
shl cx, 8
or cx, dx
cmp cx, 4
je 0x4906e7
test bp, bp
jne 0x49068b
jmp 0x4907ae
movzx eax, byte [esp + 0x34]
movzx ecx, byte [esp + 0x35]
movzx edx, byte [esp + 0x36]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x37]
shl eax, 8
or eax, edx
movzx dx, byte [esp + 0x24]
shl eax, 8
or eax, ecx
shl dx, 8
movsx ecx, dx
movzx edx, byte [esp + 0x25]
or ecx, edx
add eax, ecx
movzx ecx, byte [esp + 0x1e]
shl cx, 8
movsx edx, cx
movzx ecx, byte [esp + 0x1f]
push 0
or edx, ecx
push 0
add eax, edx
push eax
push esi
call ebx
movzx ax, byte [esp + 0x1c]
push 0
lea edx, [esp + 0x14]
push edx
movzx edx, byte [esp + 0x25]
shl ax, 8
movsx ecx, ax
or ecx, edx
push ecx
lea eax, [esp + 0x64]
push eax
push esi
call edi
movzx ecx, byte [esp + 0x1c]
movzx eax, byte [esp + 0x1d]
shl cx, 8
movsx edx, cx
or edx, eax
lea eax, [esp + 0x58]
mov byte [esp + edx + 0x58], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x490780
sub eax, edx
lea ecx, [eax*4 + 4]
push ecx
call fcn.0049f632
lea edx, [esp + 0x5c]
push edx
push 0x4cd37c
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049dc2a
add esp, 0x150
ret