Function at 0x967070
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x220
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push esi
push 0x103
lea eax, [esp + 0x25]
mov ebx, ecx
mov esi, edx
push 0
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], esi
mov byte [esp + 0x2c], 0
call fcn.00a7ffb0
add esp, 0xc
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xa
test ebp, ebp
je 0x9670d7
push 0x228
push 0
push ebp
call fcn.00a7ffb0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x128]
push 0
push ecx
call fcn.00a7ffb0
add esp, 0xc
mov ecx, ebx
call fcn.009662e0
test eax, eax
jne 0x967120
test esi, esi
je 0x967105
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x220
ret
push edi
push 0xa0
push 3
push 3
push 0x80000000
mov edi, ebx
call fcn.0094db00
mov esi, eax
add esp, 0x10
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
jne 0x96715a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [esp + 0x10], 1
jne 0x967121
or eax, esi
jmp 0x96737d
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x18]
push edx
push 3
lea eax, [esp + 0x134]
push eax
push esi
mov dword [esp + 0x24], 1
call edi
test eax, eax
je 0x96726f
movsx ecx, byte [esp + 0x128]
push ecx
call fcn.00a7c649
add esp, 4
cmp eax, 0x41
jne 0x96726f
movsx edx, byte [esp + 0x129]
push edx
call fcn.00a7c649
add esp, 4
cmp eax, 0x56
jne 0x96726f
movsx eax, byte [esp + 0x12a]
push eax
call fcn.00a7c649
add esp, 4
cmp eax, 0x50
jne 0x96726f
mov ebx, dword [sym.imp.KERNEL32.dll__llseek]
push 0
push 0x80
push esi
call ebx
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x134]
push edx
push esi
call edi
test eax, eax
je 0x96726b
movsx eax, byte [esp + 0x128]
push eax
call fcn.00a7c649
add esp, 4
cmp eax, 0x45
jne 0x96726b
movsx ecx, byte [esp + 0x129]
push ecx
call fcn.00a7c649
add esp, 4
cmp eax, 0x4b
jne 0x96726b
push 0
push 0x8c
push esi
call ebx
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x134]
push eax
push esi
call edi
test eax, eax
je 0x96726b
push 0
push 0x4f
push esi
mov dword [esp + 0x1c], 0
call ebx
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x15
lea edx, [esp + 0x134]
push edx
push esi
call edi
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
call fcn.00985290
cmp dword [esp + 0x10], 0
je 0x967298
mov eax, dword [esp + 0x20]
test eax, eax
je 0x967290
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or eax, 0xffffffff
jmp 0x96737d
test ebp, ebp
je 0x96737b
lea ecx, [ebp + 0x18]
push ecx
mov ecx, ebx
call fcn.0095af90
add esp, 4
lea edx, [esp + 0x128]
push edx
lea esi, [ebp + 0x1c1]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xaaad80
push 0xaaeafc
push esi
call fcn.0095e130
push 0x20
lea eax, [esp + 0x34]
mov ecx, esi
call fcn.00966ed0
mov esi, eax
lea eax, [esp + 0x34]
push eax
call fcn.00a79090
mov dword [ebp], eax
push 0x20
lea eax, [esp + 0x3c]
mov ecx, esi
call fcn.00966ed0
add esp, 0x18
lea ebx, [esp + 0x24]
mov esi, eax
call fcn.00966f30
cmp eax, 0xffffffff
je 0x967314
mov dword [ebp + 4], eax
jmp 0x96731b
mov dword [ebp + 4], 1
push 0x20
lea eax, [esp + 0x28]
mov ecx, esi
call fcn.00966ed0
lea ecx, [esp + 0x28]
push ecx
mov esi, eax
call fcn.00a79090
mov dword [ebp + 8], eax
push 0x3a
lea eax, [esp + 0x30]
mov ecx, esi
call fcn.00966ed0
lea edx, [esp + 0x30]
push edx
mov esi, eax
call fcn.00a79090
mov dword [ebp + 0xc], eax
push 0x3a
lea eax, [esp + 0x38]
mov ecx, esi
call fcn.00966ed0
mov esi, eax
lea eax, [esp + 0x38]
push eax
call fcn.00a79090
push esi
mov dword [ebp + 0x10], eax
call fcn.00a79090
add esp, 0x1c
mov dword [ebp + 0x14], eax
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x220
ret