Function at 0x412c80
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x447450
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x458ad0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov eax, dword [0x458ad0]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov dword [esp + 0xa4], 1
mov eax, dword [esp + 0xb0]
mov ebp, 0x10
cmp dword [esp + 0xc4], ebp
jae 0x412ce1
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.004403e0
add esp, 8
test eax, eax
je 0x412d47
cmp dword [esp + 0xc4], ebp
jb 0x412d0c
mov edx, dword [esp + 0xb0]
push edx
call fcn.0041e1fe
add esp, 4
xor ebx, ebx
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
cmp dword [esp + 0xe0], ebp
jb 0x412d40
mov eax, dword [esp + 0xcc]
push eax
call fcn.0041e1fe
add esp, 4
xor al, al
jmp 0x413077
xor ebx, ebx
cmp byte [esp + 0xe4], bl
je 0x412d5b
mov esi, dword [edi + 4]
mov dword [esp + 0x18], esi
jmp 0x412d63
mov ecx, dword [edi]
mov dword [esp + 0x18], ecx
mov esi, ecx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xf0]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00403f10
lea ecx, [esp + 0x7c]
call fcn.00407320
add esp, 0x20
mov byte [esp + 0xa4], 2
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], ebp
jae 0x412dac
lea eax, [esp + 0x60]
push eax
mov eax, dword [edi + 0xb4]
push esi
call eax
mov eax, dword [esp + 0xd4]
add esp, 8
cmp dword [esp + 0xe0], ebp
jae 0x412dd0
lea eax, [esp + 0xcc]
mov edx, dword [edi + 0xa8]
lea ecx, [esp + 0x24]
push ecx
push ebx
push 3
push eax
push esi
call edx
add esp, 0x14
cmp eax, ebx
je 0x412e5f
cmp dword [esp + 0x74], ebp
jb 0x412dfc
mov eax, dword [esp + 0x60]
push eax
call fcn.0041e1fe
add esp, 4
mov esi, 0xf
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
cmp dword [esp + 0xc4], ebp
jb 0x412e26
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0041e1fe
add esp, 4
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
cmp dword [esp + 0xe0], ebp
jb 0x412d40
mov edx, dword [esp + 0xcc]
push edx
call fcn.0041e1fe
add esp, 4
xor al, al
jmp 0x413077
push 0x80000
call fcn.0041e1f3
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x412ff0
mov eax, dword [esp + 0xb0]
xor ebp, ebp
cmp dword [esp + 0xc4], 0x10
jae 0x412e94
lea eax, [esp + 0xb0]
push 0x44f244
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004408c9
add esp, 0xc
test eax, eax
jne 0x412feb
mov eax, dword [esp + 0x40]
cmp eax, ebx
jbe 0x412fd8
jmp 0x412ec4
mov esi, dword [esp + 0x1c]
sub eax, ebp
cmp eax, 0x80000
jb 0x412ed2
mov eax, 0x80000
mov ecx, dword [esp + 0x20]
push ecx
push eax
push 1
push esi
call fcn.00440bbc
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x412fd4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push ebx
push esi
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [edi + 0xc4]
push ecx
push edx
call eax
add esp, 0x18
cmp eax, ebx
jne 0x412fd4
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
add ebp, esi
push ebx
lea edx, [esp + 0xd4]
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00403f10
lea ecx, [esp + 0x98]
call fcn.004073b0
add esp, 0x20
mov ecx, ebp
shr ecx, 0xa
mov byte [esp + 0xa4], 3
imul ecx, ecx, 0x64
mov eax, dword [esp + 0x40]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov dword [esp + 0x14], eax
mov eax, ecx
mov ecx, dword [esp + 0x14]
cdq
idiv ecx
cmp dword [edi + 0x24], ebx
je 0x412fa9
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 8
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x44f248
mov byte [ecx + 4], bl
call fcn.004051d0
mov edx, dword [edi + 0x24]
call edx
add esp, 0x20
mov byte [esp + 0xa4], 2
cmp dword [esp + 0x90], 0x10
jb 0x412fc8
mov eax, dword [esp + 0x7c]
push eax
call fcn.0041e1fe
add esp, 4
mov eax, dword [esp + 0x40]
cmp ebp, eax
jb 0x412ec0
mov esi, dword [esp + 0x1c]
push esi
call fcn.0041e1fe
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0043ee48
add esp, 8
mov ebp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [edi + 0xb0]
push eax
push ecx
call edx
add esp, 0xc
cmp dword [esp + 0x74], ebp
jb 0x41301d
mov eax, dword [esp + 0x60]
push eax
call fcn.0041e1fe
add esp, 4
mov esi, 0xf
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
cmp dword [esp + 0xc4], ebp
jb 0x413047
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0041e1fe
add esp, 4
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
cmp dword [esp + 0xe0], ebp
jb 0x413075
mov edx, dword [esp + 0xcc]
push edx
call fcn.0041e1fe
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00428e93
add esp, 0x98
ret 0x3c