Function at 0x4ff9f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xf4
mov eax, dword [0x6e30d0]
xor eax, esp
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0xf8]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov ebx, ecx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x500180
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push esi
call edi
test eax, eax
je 0x4ffa7e
cmp dword [esp + 0x18], 0x6111101
jne 0x4ffa7e
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call edi
test eax, eax
je 0x4ffa7e
mov ecx, dword [esp + 0x10]
cmp ecx, dword [0x71de74]
je 0x4ffa8a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x50017f
push 0
lea edx, [esp + 0x10]
push edx
push 0xe0
lea eax, [esp + 0x28]
push eax
push esi
call edi
push esi
test eax, eax
je 0x4ffa7f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1dc
mov ecx, 0x6f2910
call fcn.004444e0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x4ffade
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4ffade
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004ff9b0
test eax, eax
je 0x4ffb06
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
push 0x538
mov ecx, 0x6f2910
call fcn.004444e0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x4ffb38
mov eax, dword [esp + 0x48]
mov edx, dword [esi]
mov edx, dword [edx + 8]
and eax, 1
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x48]
and eax, 1
mov dword [ebx + 0x20], eax
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004ff9b0
test eax, eax
je 0x4ffb5f
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
push 0x1d4
mov ecx, 0x6f2910
call fcn.004444e0
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004ff9b0
test eax, eax
je 0x4ffb97
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
fld dword [esi + 0x1c4]
call fcn.0058a4c0
cmp eax, 0x3d1
jne 0x4ffbce
fld dword [esi + 0x1c8]
call fcn.0058a4c0
cmp eax, 0xbb
jne 0x4ffbce
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 0xd1
push 0x3d1
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x4ffc13
mov eax, dword [esp + 0x58]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4ffbf6
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x58]
test al, 4
je 0x4ffbfe
push 1
jmp 0x4ffc0c
test al, 8
je 0x4ffc06
push 2
jmp 0x4ffc0c
test al, 0x10
je 0x4ffc13
push 3
mov ecx, esi
call fcn.0046c660
push 0xf1
mov ecx, 0x6f2910
call fcn.004444e0
cmp dword [ebx + 0x1c], 0
mov esi, eax
mov eax, dword [esp + 0x68]
je 0x4ffc4c
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4ffc4c
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x68]
and eax, 2
push eax
mov ecx, esi
call fcn.0044e2d0
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004ff9b0
test eax, eax
je 0x4ffc7e
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
fld dword [esi + 0x1c4]
call fcn.0058a4c0
cmp eax, 0x1d0
jne 0x4ffcb1
fld dword [esi + 0x1c8]
call fcn.0058a4c0
cmp eax, 0x2d6
jne 0x4ffcb1
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
push 0x1a6
mov ecx, esi
call eax
push 0x131
mov ecx, 0x6f2910
call fcn.004444e0
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004ff9b0
test eax, eax
je 0x4ffce9
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x4ffd7d
mov eax, dword [esp + 0x78]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4ffd15
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x78]
test al, 4
je 0x4ffd1d
push 1
jmp 0x4ffd2b
test al, 8
je 0x4ffd25
push 2
jmp 0x4ffd2b
test al, 0x10
je 0x4ffd32
push 4
mov ecx, esi
call fcn.004d65f0
mov ebp, dword [esp + 0x7c]
mov ecx, esi
call fcn.004d6120
movzx edi, al
cmp ebp, edi
je 0x4ffd6a
push 0x40
mov ecx, esi
push 0
cmp ebp, edi
jle 0x4ffd5b
push 0x13f
call fcn.004d6940
inc edi
jmp 0x4ffd66
push 0x140
call fcn.004d6940
dec edi
cmp edi, ebp
jne 0x4ffd44
test dword [esp + 0x78], 0x100
jne 0x4ffd7d
push 0
mov ecx, esi
call fcn.004d6180
push 0x687
mov ecx, 0x6f2910
call fcn.004444e0
test eax, eax
je 0x4ffdaa
cmp dword [ebx + 0x1c], 0
je 0x4ffdaa
mov ecx, dword [esp + 0x78]
mov edx, dword [eax]
mov edx, dword [edx + 8]
and ecx, 0x100
push ecx
mov ecx, eax
call edx
push 0xf7
mov ecx, 0x6f2910
call fcn.004444e0
mov edi, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
push edi
mov esi, eax
push ebp
lea eax, [esi + 0x200]
push eax
mov ecx, ebx
call fcn.004ff9b0
test eax, eax
je 0x4ffde8
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x4ffe35
mov eax, dword [esp + 0x88]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4ffe16
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0x88]
test al, 4
je 0x4ffe1e
push 1
jmp 0x4ffe2c
test al, 8
je 0x4ffe26
push 2
jmp 0x4ffe2c
test al, 0x10
je 0x4ffe35
push 3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 0x60
mov ecx, 0x6f2910
call fcn.004444e0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x4ffe6a
mov eax, dword [esp + 0x98]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4ffe6a
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, dword [esp + 0x94]
mov ebp, dword [esp + 0x90]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004ff9b0
test eax, eax
je 0x4ffe97
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
push 0xcb
mov ecx, 0x6f2910
call fcn.004444e0
mov edi, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004ff9b0
test eax, eax
je 0x4ffed5
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x4fff4f
mov ecx, dword [esi + 0x224]
mov edx, dword [esp + 0xac]
mov dword [ecx + 0x2a8], edx
mov eax, dword [esp + 0xa8]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4fff16
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0xa8]
test al, 4
je 0x4fff4f
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
push 1
mov ecx, esi
call eax
mov al, byte [esp + 0xa8]
test al, 0x20
je 0x4fff34
push 1
jmp 0x4fff42
test al, 0x40
je 0x4fff3c
push 2
jmp 0x4fff42
test al, al
jns 0x4fff4f
push 3
mov ecx, dword [0x6e5344]
mov edx, dword [ecx]
mov eax, dword [edx + 0x68]
call eax
push 0x340
mov ecx, 0x6f2910
call fcn.004444e0
mov edi, dword [esp + 0xb4]
mov ebp, dword [esp + 0xb0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004ff9b0
test eax, eax
je 0x4fff8d
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x4fffda
mov eax, dword [esp + 0xb8]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4fffbb
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [esp + 0xb8]
test al, 4
je 0x4fffc3
push 1
jmp 0x4fffd1
test al, 8
je 0x4fffcb
push 2
jmp 0x4fffd1
test al, 0x10
je 0x4fffda
push 3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 0x5c7
mov ecx, 0x6f2910
call fcn.004444e0
mov edi, dword [esp + 0xc4]
mov ebp, dword [esp + 0xc0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004ff9b0
test eax, eax
je 0x500018
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x50003f
mov eax, dword [esp + 0xc8]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x50003f
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push 0x560
mov ecx, 0x6f2910
call fcn.004444e0
mov esi, eax
test esi, esi
je 0x5000a8
mov edi, dword [esp + 0xd4]
mov ebp, dword [esp + 0xd0]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004ff9b0
test eax, eax
je 0x500081
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x5000a8
mov eax, dword [esp + 0xd8]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x5000a8
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push 0x20d
mov ecx, 0x6f2910
call fcn.004444e0
mov edi, dword [esp + 0xe4]
mov ebp, dword [esp + 0xe0]
push edi
mov esi, eax
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004ff9b0
test eax, eax
je 0x5000e6
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
cmp dword [ebx + 0x1c], 0
je 0x500120
test byte [esp + 0xe8], 1
mov ecx, 0x6e53e0
je 0x5000ff
push 0
jmp 0x500101
push 1
call fcn.00474610
test byte [esp + 0xec], 1
mov ecx, 0x6e53e0
je 0x500119
push 0
jmp 0x50011b
push 1
call fcn.00474620
mov eax, dword [esp + 0xfc]
mov ebx, eax
mov ecx, 0x6f2910
test eax, eax
jne 0x500139
push 0x744
jmp 0x50013e
push 0x757
call fcn.004444e0
mov esi, eax
test esi, esi
je 0x50017e
mov edi, dword [esp + 0xf4]
mov ebp, dword [esp + 0xf0]
push edi
push ebp
lea ecx, [esi + 0x200]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004ff9b0
test eax, eax
je 0x500178
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebp
mov ecx, esi
call eax
mov dword [0x701980], ebx
pop ebp
pop edi
mov ecx, dword [esp + 0xf8]
pop esi
pop ebx
xor ecx, esp
call fcn.00589b64
add esp, 0xf4
ret 4