Function at 0x4f18d0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov eax, dword [0x5b107c]
xor eax, esp
mov dword [esp + 0xf0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f219d
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
jne 0x4f194d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.005762ee
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x10], 0x6111101
jne 0x4f192f
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push esi
call edi
test eax, eax
je 0x4f192f
mov ecx, dword [esp + 0x14]
cmp ecx, dword [0x698dd4]
jne 0x4f192f
push 0
lea edx, [esp + 0x10]
push edx
push 0xe0
lea eax, [esp + 0x24]
push eax
push esi
call edi
push esi
test eax, eax
je 0x4f1930
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x1b0
mov esi, 0x67cc80
call fcn.0043adf0
cmp dword [0x656844], 0
mov esi, eax
je 0x4f19cf
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f19cf
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [esi + 0x21c]
mov edi, dword [esp + 0x18]
add ecx, edi
lea eax, [esi + 0x21c]
js 0x4f19fc
mov ecx, dword [esp + 0x1c]
push edi
call fcn.004f2c00
test eax, eax
je 0x4f19fc
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push ecx
push edi
mov ecx, esi
call eax
mov edi, 0x4bd
mov esi, 0x67cc80
call fcn.0043adf0
cmp dword [0x656844], 0
mov esi, eax
je 0x4f1a33
mov eax, dword [esp + 0x40]
mov edx, dword [esi]
mov edx, dword [edx + 8]
and eax, 1
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x40]
and eax, 1
mov dword [0x656848], eax
mov ecx, dword [esi + 0x21c]
mov edi, dword [esp + 0x38]
add ecx, edi
lea eax, [esi + 0x21c]
js 0x4f1a60
mov ecx, dword [esp + 0x3c]
push edi
call fcn.004f2c00
test eax, eax
je 0x4f1a60
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push ecx
push edi
mov ecx, esi
call eax
mov edi, 0x1a8
mov esi, 0x67cc80
call fcn.0043adf0
mov esi, dword [esp + 0x48]
mov ebx, eax
mov ecx, dword [ebx + 0x21c]
add ecx, esi
lea eax, [ebx + 0x21c]
js 0x4f1a9e
mov ecx, dword [esp + 0x4c]
push esi
call fcn.004f2c00
test eax, eax
je 0x4f1a9e
mov edx, dword [ebx]
mov eax, dword [edx + 0x24]
push ecx
push esi
mov ecx, ebx
call eax
mov eax, ebx
call fcn.004019c0
call fcn.00577600
cmp eax, 0x3d1
jne 0x4f1ad7
mov eax, ebx
call fcn.004019d0
call fcn.00577600
cmp eax, 0xbb
jne 0x4f1ad7
mov edx, dword [ebx]
mov eax, dword [edx + 0x24]
push 0xd1
push 0x3d1
mov ecx, ebx
call eax
cmp dword [0x656844], 0
je 0x4f1b3b
mov eax, dword [esp + 0x50]
xor ecx, ecx
cmp dword [ebx + 0x10], eax
setne cl
test cl, 1
je 0x4f1b02
mov edx, dword [ebx]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov eax, dword [esp + 0x50]
test al, 4
je 0x4f1b14
mov ecx, 1
mov word [ebx + 0x244], cx
jmp 0x4f1b36
test al, 8
je 0x4f1b26
mov edx, 2
mov word [ebx + 0x244], dx
jmp 0x4f1b36
test al, 0x10
je 0x4f1b3b
mov eax, 3
mov word [ebx + 0x244], ax
call fcn.0045dae0
mov edi, 0xe8
mov esi, 0x67cc80
call fcn.0043adf0
cmp dword [0x656844], 0
mov esi, eax
je 0x4f1b73
mov eax, dword [esp + 0x60]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f1b73
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x60]
and eax, 2
call fcn.004411a0
mov ecx, dword [esi + 0x21c]
mov edi, dword [esp + 0x58]
add ecx, edi
lea eax, [esi + 0x21c]
js 0x4f1bac
mov ecx, dword [esp + 0x5c]
push edi
call fcn.004f2c00
test eax, eax
je 0x4f1bac
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push ecx
push edi
mov ecx, esi
call eax
mov eax, esi
call fcn.004019c0
call fcn.00577600
cmp eax, 0x1d0
jne 0x4f1be1
mov eax, esi
call fcn.004019d0
call fcn.00577600
cmp eax, 0x2d6
jne 0x4f1be1
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
push 0x1a6
mov ecx, esi
call eax
mov edi, 0x11a
mov esi, 0x67cc80
call fcn.0043adf0
mov edi, dword [esp + 0x68]
mov esi, eax
mov ecx, dword [esi + 0x21c]
add ecx, edi
lea eax, [esi + 0x21c]
js 0x4f1c1f
mov ecx, dword [esp + 0x6c]
push edi
call fcn.004f2c00
test eax, eax
je 0x4f1c1f
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push ecx
push edi
mov ecx, esi
call eax
cmp dword [0x656844], 0
je 0x4f1cec
mov eax, dword [esp + 0x70]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f1c4a
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov al, byte [esp + 0x70]
test al, 4
je 0x4f1c59
mov edx, 1
jmp 0x4f1c6d
test al, 8
je 0x4f1c64
mov edx, 2
jmp 0x4f1c6d
test al, 0x10
je 0x4f1c74
mov edx, 4
mov ecx, esi
call fcn.004cb470
mov ecx, dword [esi + 0x9d4c]
mov edx, dword [esi + ecx*4 + 0x9d1c]
movzx edi, byte [edx + 0x2ce]
mov eax, dword [esp + 0x74]
mov ebx, eax
cmp eax, edi
je 0x4f1cb6
push 0x40
mov edx, esi
cmp ebx, edi
jle 0x4f1ca7
mov ecx, 0x129
call fcn.004caf70
inc edi
jmp 0x4f1cb2
mov ecx, 0x12a
call fcn.004caf70
dec edi
cmp edi, ebx
jne 0x4f1c92
test dword [esp + 0x70], 0x100
jne 0x4f1cec
mov esi, dword [esi + 0x9d60]
test esi, esi
je 0x4f1cec
mov ecx, dword [esi + 0x2e0]
lea eax, [esi + 0x1b0]
mov dword [esi + 0x314], 0
mov dword [esi + 0x1d0], eax
mov dword [esi + 0x2ec], ecx
mov edi, 0x610
mov esi, 0x67cc80
call fcn.0043adf0
test eax, eax
je 0x4f1d1c
cmp dword [0x656844], 0
je 0x4f1d1c
mov ecx, dword [esp + 0x70]
mov edx, dword [eax]
mov edx, dword [edx + 8]
and ecx, 0x100
push ecx
mov ecx, eax
call edx
mov edi, 0xf2
mov esi, 0x67cc80
call fcn.0043adf0
mov edi, dword [esp + 0x78]
mov esi, eax
mov ecx, dword [esi + 0x21c]
add ecx, edi
lea eax, [esi + 0x21c]
js 0x4f1d5a
mov ecx, dword [esp + 0x7c]
push edi
call fcn.004f2c00
test eax, eax
je 0x4f1d5a
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push ecx
push edi
mov ecx, esi
call eax
cmp dword [0x656844], 0
je 0x4f1daa
mov eax, dword [esp + 0x80]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f1d8b
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x80]
test al, 4
je 0x4f1d93
push 1
jmp 0x4f1da1
test al, 8
je 0x4f1d9b
push 2
jmp 0x4f1da1
test al, 0x10
je 0x4f1daa
push 3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov edi, 0x60
mov esi, 0x67cc80
call fcn.0043adf0
cmp dword [0x656844], 0
mov esi, eax
je 0x4f1de5
mov eax, dword [esp + 0x90]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f1de5
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [esi + 0x21c]
mov edi, dword [esp + 0x88]
add ecx, edi
lea eax, [esi + 0x21c]
js 0x4f1e18
mov ecx, dword [esp + 0x8c]
push edi
call fcn.004f2c00
test eax, eax
je 0x4f1e18
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push ecx
push edi
mov ecx, esi
call eax
mov edi, 0xc2
mov esi, 0x67cc80
call fcn.0043adf0
mov edi, dword [esp + 0x98]
mov esi, eax
mov ecx, dword [esi + 0x21c]
add ecx, edi
lea eax, [esi + 0x21c]
js 0x4f1e5c
mov ecx, dword [esp + 0x9c]
push edi
call fcn.004f2c00
test eax, eax
je 0x4f1e5c
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push ecx
push edi
mov ecx, esi
call eax
cmp dword [0x656844], 0
je 0x4f1ed9
mov ecx, dword [esi + 0x240]
mov edx, dword [esp + 0xa4]
mov dword [ecx + 0x2c4], edx
mov eax, dword [esp + 0xa0]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f1ea0
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0xa0]
test al, 4
je 0x4f1ed9
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
push 1
mov ecx, esi
call eax
mov al, byte [esp + 0xa0]
test al, 0x20
je 0x4f1ebe
push 1
jmp 0x4f1ecc
test al, 0x40
je 0x4f1ec6
push 2
jmp 0x4f1ecc
test al, al
jns 0x4f1ed9
push 3
mov ecx, dword [0x65fd2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x68]
call eax
mov edi, 0x34e
mov esi, 0x67cc80
call fcn.0043adf0
mov edi, dword [esp + 0xa8]
mov esi, eax
mov ecx, dword [esi + 0x21c]
add ecx, edi
lea eax, [esi + 0x21c]
js 0x4f1f1d
mov ecx, dword [esp + 0xac]
push edi
call fcn.004f2c00
test eax, eax
je 0x4f1f1d
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push ecx
push edi
mov ecx, esi
call eax
cmp dword [0x656844], 0
je 0x4f1f6d
mov eax, dword [esp + 0xb0]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f1f4e
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0xb0]
test al, 4
je 0x4f1f56
push 1
jmp 0x4f1f64
test al, 8
je 0x4f1f5e
push 2
jmp 0x4f1f64
test al, 0x10
je 0x4f1f6d
push 3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov edi, 0x54f
mov esi, 0x67cc80
call fcn.0043adf0
mov edi, dword [esp + 0xb8]
mov esi, eax
mov ecx, dword [esi + 0x21c]
add ecx, edi
lea eax, [esi + 0x21c]
js 0x4f1fb1
mov ecx, dword [esp + 0xbc]
push edi
call fcn.004f2c00
test eax, eax
je 0x4f1fb1
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push ecx
push edi
mov ecx, esi
call eax
cmp dword [0x656844], 0
je 0x4f1fdb
mov eax, dword [esp + 0xc0]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f1fdb
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, 0x4e9
mov esi, 0x67cc80
call fcn.0043adf0
mov esi, eax
test esi, esi
je 0x4f204d
mov ecx, dword [esi + 0x21c]
mov edi, dword [esp + 0xc8]
add ecx, edi
lea eax, [esi + 0x21c]
js 0x4f2023
mov ecx, dword [esp + 0xcc]
push edi
call fcn.004f2c00
test eax, eax
je 0x4f2023
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push ecx
push edi
mov ecx, esi
call eax
cmp dword [0x656844], 0
je 0x4f204d
mov eax, dword [esp + 0xd0]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f204d
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, 0x1e1
mov esi, 0x67cc80
call fcn.0043adf0
mov esi, dword [esp + 0xd8]
mov edi, eax
mov ecx, dword [edi + 0x21c]
add ecx, esi
lea eax, [edi + 0x21c]
js 0x4f2091
mov ecx, dword [esp + 0xdc]
push esi
call fcn.004f2c00
test eax, eax
je 0x4f2091
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
push ecx
push esi
mov ecx, edi
call eax
cmp dword [0x656844], 0
je 0x4f213d
test byte [esp + 0xe0], 1
mov edi, 0x65fdc8
mov dword [0x65fdf4], 0
jne 0x4f20c1
mov dword [0x65fdf4], 1
call fcn.004663c0
test byte [esp + 0xe4], 1
mov esi, 0x65fdcc
je 0x4f210a
mov dword [0x65fdf0], 1
mov ecx, dword [esi]
mov edx, dword [0x65fdf0]
mov dword [ecx + 0x254], edx
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [0x65fdf0]
mov eax, dword [eax + 8]
push edx
call eax
add esi, 4
cmp esi, 0x65fde4
jl 0x4f20df
jmp 0x4f213d
mov dword [0x65fdf0], 0
mov ecx, dword [esi]
mov edx, dword [0x65fdf0]
mov dword [ecx + 0x254], edx
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [0x65fdf0]
mov eax, dword [eax + 8]
push edx
call eax
add esi, 4
cmp esi, 0x65fde4
jl 0x4f2114
mov eax, dword [esp + 0xf4]
mov ebx, eax
mov esi, 0x67cc80
mov edi, 0x6cb
test eax, eax
je 0x4f2159
mov edi, 0x6de
call fcn.0043adf0
mov esi, eax
test esi, esi
je 0x4f219d
mov ecx, dword [esi + 0x21c]
mov edi, dword [esp + 0xe8]
add ecx, edi
lea eax, [esi + 0x21c]
js 0x4f2197
mov ecx, dword [esp + 0xec]
push edi
call fcn.004f2c00
test eax, eax
je 0x4f2197
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push ecx
push edi
mov ecx, esi
call eax
mov dword [0x6820e0], ebx
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005762ee
mov esp, ebp
pop ebp
ret 4