Function at 0x4f1970
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov ebx, ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f20e2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp + 8]
push ecx
push 4
lea edx, [ebp - 0x10]
push edx
push esi
call edi
test eax, eax
je 0x4f19e8
cmp dword [ebp - 0x10], 0x6111101
jne 0x4f19e8
push 0
lea eax, [ebp + 8]
push eax
push 4
lea ecx, [ebp - 8]
push ecx
push esi
call edi
test eax, eax
je 0x4f19e8
mov edx, dword [ebp - 8]
cmp edx, dword [0x700dd4]
je 0x4f19f8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp + 8]
push eax
push 0xe0
lea ecx, [ebp - 0xf0]
push ecx
push esi
call edi
push esi
test eax, eax
je 0x4f19e9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1dc
mov ecx, 0x6d5870
call fcn.0043f1c0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x4f1a4f
mov eax, dword [ebp - 0xe8]
xor edx, edx
cmp dword [esi + 0x10], eax
setne dl
test dl, 1
je 0x4f1a4f
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xf0]
push edi
push ecx
lea edx, [esi + 0x200]
push edx
mov ecx, ebx
call fcn.004f1930
test eax, eax
je 0x4f1a80
mov ecx, dword [ebp - 0xf0]
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push edi
push ecx
mov ecx, esi
call edx
push 0x53b
mov ecx, 0x6d5870
call fcn.0043f1c0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x4f1ab6
mov ecx, dword [ebp - 0xc8]
mov eax, dword [esi]
mov edx, dword [eax + 8]
and ecx, 1
push ecx
mov ecx, esi
call edx
mov eax, dword [ebp - 0xc8]
and eax, 1
mov dword [ebx + 0x20], eax
mov edi, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xd0]
push edi
push ecx
lea edx, [esi + 0x200]
push edx
mov ecx, ebx
call fcn.004f1930
test eax, eax
je 0x4f1ae7
mov ecx, dword [ebp - 0xd0]
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push edi
push ecx
mov ecx, esi
call edx
push 0x1d4
mov ecx, 0x6d5870
call fcn.0043f1c0
mov edi, dword [ebp - 0xbc]
mov esi, eax
mov eax, dword [ebp - 0xc0]
push edi
push eax
lea ecx, [esi + 0x200]
push ecx
mov ecx, ebx
call fcn.004f1930
test eax, eax
je 0x4f1b29
mov edx, dword [esi]
mov eax, dword [ebp - 0xc0]
mov edx, dword [edx + 0x24]
push edi
push eax
mov ecx, esi
call edx
fld dword [esi + 0x1c4]
call fcn.0056ed80
cmp eax, 0x3d1
jne 0x4f1b60
fld dword [esi + 0x1c8]
call fcn.0056ed80
cmp eax, 0xbb
jne 0x4f1b60
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 0xd1
push 0x3d1
mov ecx, esi
call edx
cmp dword [ebx + 0x1c], 0
je 0x4f1ba9
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f1b8c
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0xb8]
test al, 4
je 0x4f1b94
push 1
jmp 0x4f1ba2
test al, 8
je 0x4f1b9c
push 2
jmp 0x4f1ba2
test al, 0x10
je 0x4f1ba9
push 3
mov ecx, esi
call fcn.00465730
push 0xf1
mov ecx, 0x6d5870
call fcn.0043f1c0
cmp dword [ebx + 0x1c], 0
mov esi, eax
mov eax, dword [ebp - 0xa8]
je 0x4f1be6
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f1be6
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0xa8]
and eax, 2
push eax
mov ecx, esi
call fcn.00448c60
mov edi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb0]
push edi
push ebx
lea ecx, [esi + 0x200]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004f1930
test eax, eax
je 0x4f1c1d
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebx
mov ecx, esi
call eax
fld dword [esi + 0x1c4]
call fcn.0056ed80
cmp eax, 0x1d0
jne 0x4f1c50
fld dword [esi + 0x1c8]
call fcn.0056ed80
cmp eax, 0x2d6
jne 0x4f1c50
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
push 0x1a6
mov ecx, esi
call eax
push 0x131
mov ecx, 0x6d5870
call fcn.0043f1c0
mov edi, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0xa0]
push edi
mov esi, eax
push ebx
lea ecx, [esi + 0x200]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004f1930
test eax, eax
je 0x4f1c8d
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebx
mov ecx, esi
call eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1c], 0
je 0x4f1d2c
mov eax, dword [ebp - 0x98]
xor edx, edx
cmp dword [esi + 0x10], eax
setne dl
test dl, 1
je 0x4f1cc0
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x98]
test al, 4
je 0x4f1cc8
push 1
jmp 0x4f1cd6
test al, 8
je 0x4f1cd0
push 2
jmp 0x4f1cd6
test al, 0x10
je 0x4f1cdd
push 4
mov ecx, esi
call fcn.004c9a60
mov ebx, dword [ebp - 0x94]
mov ecx, esi
call fcn.004c95f0
movzx edi, al
cmp ebx, edi
je 0x4f1d17
push 0x40
mov ecx, esi
push 0
cmp ebx, edi
jle 0x4f1d08
push 0x13f
call fcn.004c9dc0
inc edi
jmp 0x4f1d13
push 0x140
call fcn.004c9dc0
dec edi
cmp edi, ebx
jne 0x4f1cf1
test dword [ebp - 0x98], 0x100
jne 0x4f1d2c
push 0
mov ecx, esi
call fcn.004c9650
push 0x68a
mov ecx, 0x6d5870
call fcn.0043f1c0
test eax, eax
je 0x4f1d5e
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1c], 0
je 0x4f1d5e
mov ecx, dword [ebp - 0x98]
mov edx, dword [eax]
mov edx, dword [edx + 8]
and ecx, 0x100
push ecx
mov ecx, eax
call edx
push 0xf7
mov ecx, 0x6d5870
call fcn.0043f1c0
mov edi, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x90]
mov ecx, dword [ebp - 4]
push edi
mov esi, eax
push ebx
lea eax, [esi + 0x200]
push eax
call fcn.004f1930
test eax, eax
je 0x4f1d9b
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebx
mov ecx, esi
call eax
mov edi, dword [ebp - 4]
cmp dword [edi + 0x1c], 0
je 0x4f1de9
mov eax, dword [ebp - 0x88]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f1dca
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x88]
test al, 4
je 0x4f1dd2
push 1
jmp 0x4f1de0
test al, 8
je 0x4f1dda
push 2
jmp 0x4f1de0
test al, 0x10
je 0x4f1de9
push 3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 0x60
mov ecx, 0x6d5870
call fcn.0043f1c0
cmp dword [edi + 0x1c], 0
mov esi, eax
je 0x4f1e1a
mov eax, dword [ebp - 0x78]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f1e1a
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x80]
push edi
push ebx
lea ecx, [esi + 0x200]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004f1930
test eax, eax
je 0x4f1e40
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebx
mov ecx, esi
call eax
push 0xcb
mov ecx, 0x6d5870
call fcn.0043f1c0
mov edi, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x70]
push edi
mov esi, eax
push ebx
lea ecx, [esi + 0x200]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004f1930
test eax, eax
je 0x4f1e77
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebx
mov ecx, esi
call eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1c], 0
je 0x4f1ee4
mov eax, dword [ebp - 0x64]
mov edx, dword [esi + 0x224]
mov dword [edx + 0x2a8], eax
mov eax, dword [ebp - 0x68]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x4f1eaf
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x68]
test al, 4
je 0x4f1ee4
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
push 1
mov ecx, esi
call eax
mov al, byte [ebp - 0x68]
test al, 0x20
je 0x4f1ec9
push 1
jmp 0x4f1ed7
test al, 0x40
je 0x4f1ed1
push 2
jmp 0x4f1ed7
test al, al
jns 0x4f1ee4
push 3
mov ecx, dword [0x6c82a4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x68]
call eax
push 0x340
mov ecx, 0x6d5870
call fcn.0043f1c0
mov edi, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x60]
push edi
mov esi, eax
push ebx
lea ecx, [esi + 0x200]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004f1930
test eax, eax
je 0x4f1f1b
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebx
mov ecx, esi
call eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1c], 0
je 0x4f1f63
mov eax, dword [ebp - 0x58]
xor edx, edx
cmp dword [esi + 0x10], eax
setne dl
test dl, 1
je 0x4f1f44
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x58]
test al, 4
je 0x4f1f4c
push 1
jmp 0x4f1f5a
test al, 8
je 0x4f1f54
push 2
jmp 0x4f1f5a
test al, 0x10
je 0x4f1f63
push 3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 0x5ca
mov ecx, 0x6d5870
call fcn.0043f1c0
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x50]
push edi
mov esi, eax
push ebx
lea ecx, [esi + 0x200]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004f1930
test eax, eax
je 0x4f1f9a
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebx
mov ecx, esi
call eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1c], 0
je 0x4f1fc0
mov eax, dword [ebp - 0x48]
xor edx, edx
cmp dword [esi + 0x10], eax
setne dl
test dl, 1
je 0x4f1fc0
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push 0x563
mov ecx, 0x6d5870
call fcn.0043f1c0
mov esi, eax
test esi, esi
je 0x4f2021
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
push edi
push ebx
lea ecx, [esi + 0x200]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004f1930
test eax, eax
je 0x4f1ffb
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebx
mov ecx, esi
call eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1c], 0
je 0x4f2021
mov eax, dword [ebp - 0x38]
xor edx, edx
cmp dword [esi + 0x10], eax
setne dl
test dl, 1
je 0x4f2021
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push 0x20d
mov ecx, 0x6d5870
call fcn.0043f1c0
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
push edi
mov esi, eax
push ebx
lea ecx, [esi + 0x200]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004f1930
test eax, eax
je 0x4f2058
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebx
mov ecx, esi
call eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1c], 0
je 0x4f208d
test byte [ebp - 0x28], 1
mov ecx, 0x6c8340
je 0x4f2070
push 0
jmp 0x4f2072
push 1
call fcn.0046d690
test byte [ebp - 0x24], 1
mov ecx, 0x6c8340
je 0x4f2086
push 0
jmp 0x4f2088
push 1
call fcn.0046d6b0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov ecx, 0x6d5870
test eax, eax
jne 0x4f20a3
push 0x747
jmp 0x4f20a8
push 0x75a
call fcn.0043f1c0
mov esi, eax
test esi, esi
je 0x4f20e1
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
push edi
push ebx
lea edx, [esi + 0x200]
push edx
call fcn.004f1930
test eax, eax
je 0x4f20d9
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push edi
push ebx
mov ecx, esi
call edx
mov eax, dword [ebp - 0xc]
mov dword [0x6e48e0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4