Function at 0x4fa440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x6a78d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4faac3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x12c]
push 0
push eax
push 4
lea eax, [ebp - 0x130]
push eax
push esi
call edi
test eax, eax
je 0x4fa4d2
cmp dword [ebp - 0x130], 0x6111101
jne 0x4fa4d2
push 0
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x134]
push eax
push esi
call edi
test eax, eax
je 0x4fa4d2
movzx eax, byte [0x6f4f10]
cmp dword [ebp - 0x134], eax
je 0x4fa4ec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574cc2
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp - 0x12c]
push eax
push 0x120
lea eax, [ebp - 0x124]
push eax
push esi
call edi
push esi
test eax, eax
je 0x4fa4d3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x77d
mov ecx, 0x69d248
call fcn.004483b0
mov edi, dword [ebp - 0x20]
mov esi, eax
push edi
push dword [ebp - 0x24]
lea ecx, [esi + 0x93c]
push ecx
mov ecx, ebx
call fcn.004fa3e0
test eax, eax
je 0x4fa544
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x24]
call dword [eax + 0x24]
push 0x84d
mov ecx, 0x69d248
call fcn.004483b0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x4fa583
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [esi + 0x24], eax
setne cl
test cl, 1
je 0x4fa583
and eax, 1
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x6bbe2c]
and eax, 1
push eax
call fcn.0040bde0
mov edi, dword [ebp - 0x10]
lea eax, [esi + 0x93c]
push edi
push dword [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.004fa3e0
test eax, eax
je 0x4fa5a7
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x14]
call dword [eax + 0x24]
push 0x1db
mov ecx, 0x69d248
call fcn.004483b0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x4fa5dc
mov edx, dword [ebp - 0x11c]
xor ecx, ecx
cmp dword [esi + 0x10], edx
setne cl
test cl, 1
je 0x4fa5dc
mov eax, dword [esi]
and edx, 1
push edx
mov ecx, esi
call dword [eax + 8]
mov edi, dword [ebp - 0x120]
lea eax, [esi + 0x93c]
push edi
push dword [ebp - 0x124]
mov ecx, ebx
push eax
call fcn.004fa3e0
test eax, eax
je 0x4fa609
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x124]
call dword [eax + 0x24]
push 0xed
mov ecx, 0x69d248
call fcn.004483b0
cmp dword [ebx + 0x1c], 0
mov esi, eax
mov edx, dword [ebp - 0xdc]
je 0x4fa644
xor ecx, ecx
cmp dword [esi + 0x10], edx
setne cl
test cl, 1
je 0x4fa644
mov eax, dword [esi]
and edx, 1
push edx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [ebp - 0xdc]
and edx, 2
mov ecx, esi
push edx
call fcn.0044d6d0
push 0x124
mov ecx, 0x69d248
call fcn.004483b0
cmp dword [ebx + 0x1c], 0
mov edi, eax
je 0x4fa711
mov edx, dword [ebp - 0xcc]
xor ecx, ecx
cmp dword [edi + 0x10], edx
setne cl
test cl, 1
je 0x4fa68e
mov eax, dword [edi]
and edx, 1
push edx
mov ecx, edi
call dword [eax + 8]
mov edx, dword [ebp - 0xcc]
test dl, 4
je 0x4fa697
push 1
jmp 0x4fa6a7
test dl, 8
je 0x4fa6a0
push 2
jmp 0x4fa6a7
test dl, 0x10
je 0x4fa6ae
push 4
mov ecx, edi
call fcn.004d3580
mov eax, dword [ebp - 0xc8]
mov ecx, edi
mov dword [ebp - 0x128], eax
call fcn.004d2a70
movzx esi, al
mov eax, dword [ebp - 0x128]
cmp eax, esi
je 0x4fa6fc
mov edi, edi
mov ecx, edi
push 0x40
push 0
cmp eax, esi
jle 0x4fa6e7
push 0x132
call fcn.004d3260
inc esi
jmp 0x4fa6f2
push 0x133
call fcn.004d3260
dec esi
mov eax, dword [ebp - 0x128]
cmp esi, eax
jne 0x4fa6d0
test dword [ebp - 0xcc], 0x100
je 0x4fa711
push 0
mov ecx, edi
call fcn.004d36c0
push 0x5d0
mov ecx, 0x69d248
call fcn.004483b0
test eax, eax
je 0x4fa73e
cmp dword [ebx + 0x1c], 0
je 0x4fa73e
mov ecx, dword [ebp - 0xcc]
mov edx, dword [eax]
and ecx, 0x100
push ecx
mov ecx, eax
call dword [edx + 8]
push 0xf3
mov ecx, 0x69d248
call fcn.004483b0
mov edi, dword [ebp - 0xc0]
mov esi, eax
push edi
push dword [ebp - 0xc4]
lea ecx, [esi + 0x93c]
push ecx
mov ecx, ebx
call fcn.004fa3e0
test eax, eax
je 0x4fa77c
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xc4]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x4fa7c5
mov ecx, dword [ebp - 0xbc]
xor eax, eax
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x4fa7a5
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0xbc]
test cl, 4
je 0x4fa7ae
push 1
jmp 0x4fa7be
test cl, 8
je 0x4fa7b7
push 2
jmp 0x4fa7be
test cl, 0x10
je 0x4fa7c5
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x61
mov ecx, 0x69d248
call fcn.004483b0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x4fa7f7
mov edx, dword [ebp - 0xac]
xor ecx, ecx
cmp dword [esi + 0x10], edx
setne cl
test cl, 1
je 0x4fa7f7
mov eax, dword [esi]
and edx, 1
push edx
mov ecx, esi
call dword [eax + 8]
mov edi, dword [ebp - 0xb0]
lea eax, [esi + 0x93c]
push edi
push dword [ebp - 0xb4]
mov ecx, ebx
push eax
call fcn.004fa3e0
test eax, eax
je 0x4fa824
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xb4]
call dword [eax + 0x24]
push 0xc7
mov ecx, 0x69d248
call fcn.004483b0
mov edi, dword [ebp - 0xa0]
mov esi, eax
push edi
push dword [ebp - 0xa4]
lea ecx, [esi + 0x93c]
push ecx
mov ecx, ebx
call fcn.004fa3e0
test eax, eax
je 0x4fa862
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xa4]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x4fa8d2
mov ecx, dword [esi + 0x960]
mov eax, dword [ebp - 0x98]
mov dword [ecx + 0x9e4], eax
xor eax, eax
mov ecx, dword [ebp - 0x9c]
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x4fa89d
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x9c]
test cl, 4
je 0x4fa8d2
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x68]
mov eax, dword [ebp - 0x9c]
test al, 0x20
je 0x4fa8b9
push 1
jmp 0x4fa8c7
test al, 0x40
je 0x4fa8c1
push 2
jmp 0x4fa8c7
test al, al
jns 0x4fa8d2
push 3
mov ecx, dword [0x6bbb0c]
mov eax, dword [ecx]
call dword [eax + 0x68]
push 0x350
mov ecx, 0x69d248
call fcn.004483b0
mov edi, dword [ebp - 0x90]
mov esi, eax
push edi
push dword [ebp - 0x94]
lea ecx, [esi + 0x93c]
push ecx
mov ecx, ebx
call fcn.004fa3e0
test eax, eax
je 0x4fa910
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x94]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x4fa959
mov ecx, dword [ebp - 0x8c]
xor eax, eax
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x4fa939
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x8c]
test cl, 4
je 0x4fa942
push 1
jmp 0x4fa952
test cl, 8
je 0x4fa94b
push 2
jmp 0x4fa952
test cl, 0x10
je 0x4fa959
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x510
mov ecx, 0x69d248
call fcn.004483b0
mov edi, dword [ebp - 0x80]
mov esi, eax
push edi
push dword [ebp - 0x84]
lea ecx, [esi + 0x93c]
push ecx
mov ecx, ebx
call fcn.004fa3e0
test eax, eax
je 0x4fa994
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x84]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x4fa9b4
mov ecx, dword [ebp - 0x7c]
xor eax, eax
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x4fa9b4
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x4a8
mov ecx, 0x69d248
call fcn.004483b0
mov esi, eax
test esi, esi
je 0x4faa0d
mov edi, dword [ebp - 0x70]
lea ecx, [esi + 0x93c]
push edi
push dword [ebp - 0x74]
push ecx
mov ecx, ebx
call fcn.004fa3e0
test eax, eax
je 0x4fa9ed
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x74]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x4faa0d
mov ecx, dword [ebp - 0x6c]
xor eax, eax
cmp dword [esi + 0x10], ecx
setne al
test al, 1
je 0x4faa0d
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x214
mov ecx, 0x69d248
call fcn.004483b0
mov edi, dword [ebp - 0x60]
mov esi, eax
push edi
push dword [ebp - 0x64]
lea ecx, [esi + 0x93c]
push ecx
mov ecx, ebx
call fcn.004fa3e0
test eax, eax
je 0x4faa42
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x64]
call dword [eax + 0x24]
cmp dword [ebx + 0x1c], 0
je 0x4faa74
test byte [ebp - 0x5c], 1
mov ecx, 0x6bbba8
je 0x4faa57
push 0
jmp 0x4faa59
push 1
call fcn.004733b0
test byte [ebp - 0x58], 1
mov ecx, 0x6bbba8
je 0x4faa6d
push 0
jmp 0x4faa6f
push 1
call fcn.00473390
mov edi, dword [ebp - 0x48]
mov ecx, 0x69d248
test edi, edi
jne 0x4faa87
push 0x68e
jmp 0x4faa8c
push 0x6a1
call fcn.004483b0
mov esi, eax
test esi, esi
je 0x4faac2
push dword [ebp - 0x50]
lea eax, [esi + 0x93c]
mov ecx, ebx
push dword [ebp - 0x54]
push eax
call fcn.004fa3e0
test eax, eax
je 0x4faabc
push dword [ebp - 0x50]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x54]
call dword [eax + 0x24]
mov dword [0x6d7fb0], edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00574cc2
mov esp, ebp
pop ebp
ret 4