Function at 0x4a80a3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4d33b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x22c], ecx
xor ecx, ecx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x208], ecx
movlpd qword [ebp - 0x214], xmm0
mov dword [ebp - 0x220], ecx
mov dword [eax], ecx
test edi, edi
jne 0x4a80ff
xor eax, eax
jmp 0x4a8506
push ebx
call fcn.004a7f26
mov ebx, eax
mov dword [ebp - 0x218], ebx
test ebx, ebx
jne 0x4a8119
push 0x1b
pop eax
jmp 0x4a8505
push ebx
test esi, esi
mov eax, 0x40d148
cmovne eax, esi
push eax
push 0x40d16c
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.004a7ecd
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4a8148
mov edi, ebx
jmp 0x4a84fb
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x214]
or eax, dword [ebp - 0x210]
je 0x4a818d
push 0x416124
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004a7ecd
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4a84e8
push ebx
push 0x40d180
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004a7ecd
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a84e8
push 0x40d188
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004a7ecd
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4a84e8
lea eax, [ebp - 0x214]
push eax
push dword [edi + 8]
lea eax, [ebp - 0x208]
push dword [edi + 4]
push esi
push eax
call fcn.004a7dd1
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4a84e8
push 0x416724
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004a7ecd
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4a84e8
cmp dword [edi + 0x24], eax
je 0x4a825a
call fcn.004a7f26
push eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x214]
push 0x40d1b0
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004a7ecd
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a84e8
mov ebx, edi
cmp dword [edi + 0x24], 0
je 0x4a82b4
xor eax, eax
mov dword [ebp - 0x20c], eax
cmp dword [ebx + 0x2c], eax
jne 0x4a8286
push dword [ebx + 0xc]
call fcn.004a8668
mov dword [ebp - 0x20c], eax
pop ecx
test eax, eax
je 0x4a855f
cmp dword [ebx + 0x2c], 0
mov ecx, eax
lea eax, [ebp - 0x214]
cmovne ecx, dword [ebx + 0x2c]
push ecx
push dword [ebp - 0x220]
push 0x40d1e0
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004a7ecd
add esp, 0x14
jmp 0x4a8302
test byte [edi + 0x28], 0x51
je 0x4a831e
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x4a82d6
test byte [edi + 0x28], 1
je 0x4a8316
test eax, eax
jne 0x4a82d6
push dword [edi + 0xc]
call fcn.004a8668
pop ecx
jmp 0x4a82d8
xor eax, eax
cmp dword [edi + 0x2c], 0
mov dword [ebp - 0x20c], eax
cmovne eax, dword [edi + 0x2c]
push eax
push 0x40d218
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004a7ecd
add esp, 0x10
mov esi, eax
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x4a8316
push eax
call dword [0x4d336c]
pop ecx
test esi, esi
jne 0x4a84e8
cmp dword [ebx + 0x1c], 0
je 0x4a834c
push dword [ebx + 0x1c]
lea eax, [ebp - 0x214]
push 0x40d228
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004a7ecd
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a84e8
mov eax, dword [ebx + 0x20]
jmp 0x4a8381
push dword [eax]
lea eax, [ebp - 0x214]
push 0x40d23c
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004a7ecd
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a84e8
mov eax, dword [ebp - 0x20c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20c], eax
test eax, eax
jne 0x4a8351
test esi, esi
jne 0x4a84e8
push 0x40d244
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004a7ecd
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4a84e8
test byte [edi + 0x28], 3
jne 0x4a83fe
test byte [edi + 0x28], 0x10
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x208]
je 0x4a83d9
push dword [edi + 0x18]
push dword [edi + 0x14]
jmp 0x4a83ec
test byte [edi + 0x28], 0x40
push dword [edi + 0x10]
je 0x4a83e9
push dword [edi + 0x30]
push 2
jmp 0x4a83ee
push dword [edi + 0xc]
push 1
push eax
call fcn.004a7dd1
add esp, 0x14
mov esi, eax
jmp 0x4a84d9
push dword [ebx + 0xc]
push 0x416fc0
call fcn.00493b07
pop ecx
pop ecx
test eax, eax
je 0x4a841a
push 0
call fcn.004b5d4c
jmp 0x4a8428
push 0x416128
push dword [ebx + 0xc]
call fcn.004b6fb1
pop ecx
mov dword [ebp - 0x20c], eax
pop ecx
test eax, eax
je 0x4a84b2
push 0
call fcn.004b5d4c
pop ecx
mov ecx, dword [ebp - 0x20c]
push ecx
cmp ecx, eax
je 0x4a8496
call fcn.004b82dc
lea eax, [ebp - 0x214]
push eax
push 0
push dword [ebx + 0xc]
lea eax, [ebp - 0x208]
push 3
push eax
call fcn.004a7dd1
add esp, 0x18
jmp 0x4a83f7
lea ecx, [ebp - 0x214]
push ecx
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x208]
push 1
push eax
call fcn.004a7dd1
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4a84d9
push dword [ebp - 0x20c]
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.004b8734
add esp, 0x10
test eax, eax
jne 0x4a846a
jmp 0x4a84d9
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x4a84cd
push dword [ebx + 0xc]
push 0x40d24c
push eax
call fcn.004928db
add esp, 0xc
mov eax, dword [ebp - 0x224]
push 0x1a
pop esi
and dword [eax], 0
mov ebx, dword [ebx + 0x24]
test ebx, ebx
je 0x4a8516
test esi, esi
je 0x4a825c
lea eax, [ebp - 0x21c]
push eax
call fcn.004a8048
pop ecx
mov edi, dword [ebp - 0x218]
push edi
call dword [0x4d336c]
pop ecx
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004aab4c
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x4a84e8
cmp dword [edi + 0x24], esi
je 0x4a854e
mov ebx, dword [ebp - 0x220]
lea eax, [ebp - 0x214]
push ebx
push 0x40d268
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004a7ecd
push ebx
mov esi, eax
call dword [0x4d336c]
add esp, 0x14
test esi, esi
jne 0x4a84e8
mov edi, dword [edi]
test edi, edi
je 0x4a8571
mov ebx, dword [ebp - 0x218]
jmp 0x4a815a
lea eax, [ebp - 0x21c]
push eax
call fcn.004a8048
pop ecx
push 0x1b
pop esi
jmp 0x4a84f5
test esi, esi
jne 0x4a84e8
mov edi, dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push edi
push 0x40d274
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004a7ecd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a85b3
lea eax, [ebp - 0x21c]
push eax
call fcn.004a8048
pop ecx
jmp 0x4a84fb
mov ecx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x214]
push edi
mov dword [ecx], eax
mov eax, dword [ebp - 0x210]
mov dword [ecx + 4], eax
call dword [0x4d336c]
mov eax, dword [ebp - 0x224]
pop ecx
mov ecx, dword [ebp - 0x230]
mov dword [eax], ecx
xor eax, eax
jmp 0x4a8505