Function at 0x412fb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x674014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x40], 0
je 0x41300a
mov esi, ecx
mov ecx, dword [ecx + 0x5c]
test cl, 8
jne 0x413012
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x20]
lea edx, [esi + 0x38]
xor ebx, ebx
cmp byte [esi + 0x62], 0
cmove eax, edx
sete bl
mov edx, dword [eax]
mov eax, dword [esi + ebx*8 + 0x34]
add eax, edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x5c], 8
jmp 0x413015
xor edi, edi
dec edi
jmp 0x4131c4
mov eax, dword [esi + 0xc]
mov byte [ebp - 0x11], 0xff
test eax, eax
jne 0x41302c
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x11]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
xor ebx, ebx
mov edx, dword [esi + 0x10]
test cl, 8
je 0x41304f
mov ecx, edx
sub ecx, dword [esi + 8]
mov edi, ecx
shr edi, 0x1f
add edi, ecx
sar edi, 1
cmp edi, 4
mov ebx, 4
cmovb ebx, edi
cmp eax, edx
je 0x41305b
movzx edi, byte [eax]
jmp 0x4131b1
sub eax, ebx
push ebx
push eax
push dword [esi + 8]
call fcn.005df8f0
add esp, 0xc
cmp byte [esi + 0x62], 0
je 0x4130a8
mov eax, dword [esi + 8]
add eax, ebx
mov ecx, dword [esi + 0x10]
sub ecx, eax
push dword [esi + 0x40]
push ecx
push 1
push eax
call fcn.005f62d7
add esp, 0x10
test eax, eax
je 0x4131ae
mov ecx, dword [esi + 8]
lea edx, [ecx + ebx]
add eax, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
movzx edi, byte [ecx + ebx]
jmp 0x4131b1
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov edi, ecx
mov eax, ecx
sub edi, edx
je 0x4130c9
push edi
push edx
push dword [esi + 0x20]
call fcn.005df8f0
add esp, 0xc
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
sub eax, ecx
mov ecx, dword [esi + 0x20]
add eax, ecx
mov dword [esi + 0x24], eax
lea edx, [esi + 0x2c]
cmp ecx, edx
je 0x4130df
mov edx, dword [esi + 0x34]
jmp 0x4130e4
mov edx, 8
add ecx, edx
mov dword [esi + 0x28], ecx
sub ecx, eax
mov edx, dword [esi + 0x3c]
mov edi, dword [esi + 0x40]
mov dword [ebp - 0x1c], edi
sub edx, ebx
cmp ecx, edx
cmovb edx, ecx
mov ecx, dword [esi + 0x48]
mov edi, dword [esi + 0x4c]
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], ecx
push dword [ebp - 0x1c]
push edx
push 1
push eax
call fcn.005f62d7
add esp, 0x10
test eax, eax
je 0x4131ae
mov edi, eax
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4131d8
mov ecx, eax
add edi, dword [esi + 0x24]
lea eax, [esi + 0x24]
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x28], edi
lea eax, [ebp - 0x18]
mov dword [eax], 0xffffffff
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x3c]
add edx, eax
mov dword [ebp - 0x2c], edx
add eax, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x28], ecx
lea eax, [esi + 0x48]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x30], eax
call dword [section..00cfg]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [ebp - 0x28]
cmp eax, 3
jne 0x413199
mov ebx, dword [esi + 0x20]
mov eax, dword [esi + 0x28]
mov dword [esi + 8], ebx
jmp 0x4131a3
mov eax, dword [ebp - 0x18]
add ebx, dword [esi + 8]
cmp eax, ebx
je 0x4131ae
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
movzx edi, byte [ebx]
jmp 0x4131b1
xor edi, edi
dec edi
lea eax, [ebp - 0x11]
cmp dword [esi + 8], eax
jne 0x4131c4
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd6f3
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004133ff
int3