Function at 0x410320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
push edi
test ebx, ebx
je 0x4106bc
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x4106bc
cmp dword [ebp + 0x1c], 0
je 0x4106bc
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
je 0x4106bc
cmp dword [edi + 0xc], 0x100
je 0x4103db
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4106c9
pop edi
mov dword [eax], 8
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
sub eax, dword [ebp + 0x10]
push esi
push 2
push eax
push ecx
call fcn.0045c9d8
add esp, 0xc
cmp eax, 0xffffffff
je 0x410404
push 0xc
call fcn.0045d4a0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x41041a
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4106a4
mov dword [eax], 3
jmp 0x4106a4
mov esi, dword [ebp + 0x24]
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ecx
mov al, byte [ebp + 0x14]
cmp al, 0x42
jne 0x41049c
push dword [edi + 0xc]
call fcn.0045d4a0
mov ecx, dword [ebp - 8]
add esp, 4
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
test eax, eax
je 0x4104ec
push dword [edi + 0xc]
push 0
push eax
call fcn.00446a30
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0xc]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
push dword [edi + 0xc]
push dword [eax]
mov eax, dword [ebp + 0xc]
push eax
call fcn.0045cfb0
add esp, 0x18
cmp eax, 0xffffffff
je 0x410487
cmp eax, dword [edi + 0xc]
je 0x41054e
mov eax, esi
test eax, eax
je 0x4106a4
mov dword [eax], 0xd
jmp 0x4106a4
cmp al, 0x54
jne 0x410698
push 0xc
call fcn.0045d4a0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x4104ec
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 0xc]
add ecx, ecx
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
push dword [eax + 4]
call fcn.0045d4a0
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
test ecx, ecx
jne 0x410501
mov eax, esi
test eax, eax
je 0x4106a4
mov dword [eax], 3
jmp 0x4106a4
push dword [eax + 4]
push 0
push ecx
call fcn.00446a30
mov eax, dword [ebp - 4]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp + 0xc]
push eax
call fcn.0045cfb0
add esp, 0x18
cmp eax, 0xffffffff
je 0x410487
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 4]
jne 0x410487
push dword [ebp + 0x28]
push esi
push dword [ebp - 8]
push ecx
call fcn.00412420
add esp, 0x10
test ax, ax
je 0x4106a4
mov edi, dword [ebp + 0x20]
lea eax, [edi*8]
push eax
call fcn.0045d4a0
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4105a6
lea ecx, [edi*8]
push ecx
push 0
push eax
call fcn.00446a30
add esp, 0xc
cmp edi, 6
jae 0x410593
test esi, esi
je 0x4106a4
mov dword [esi], 4
jmp 0x4106a4
push edi
lfence
call fcn.0045d4a0
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4105b9
test esi, esi
je 0x4106a4
mov dword [esi], 3
jmp 0x4106a4
push edi
push 0
push eax
lfence
call fcn.00446a30
push dword [ebp + 0x28]
lea eax, [edi*8]
push dword [ebp - 0x10]
push eax
push dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
push dword [eax]
call fcn.00412a30
mov edx, dword [ebp - 0xc]
mov ecx, str.AVSIGN
add esp, 0x24
mov eax, dword [edx]
mov dword [ebx], eax
mov ax, word [edx + 4]
mov word [ebx + 4], ax
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x41068c
movzx eax, word [ebx + 4]
cmp ax, word [ecx + 4]
jne 0x41068c
mov eax, dword [edx + 6]
lea esi, [edx + 0x2e]
mov dword [ebx + 8], eax
lea edi, [ebx + 0x30]
mov eax, dword [edx + 0xa]
mov ecx, 8
mov dword [ebx + 0xc], eax
mov eax, dword [edx + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0x12]
push dword [ebp + 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [edx + 0x16]
mov dword [ebx + 0x18], eax
mov eax, dword [edx + 0x1a]
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 0x1e]
mov dword [ebx + 0x20], eax
mov eax, dword [edx + 0x22]
mov dword [ebx + 0x24], eax
mov eax, dword [edx + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [edx + 0x2a]
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x4e]
mov ecx, 8
lea edi, [ebx + 0x50]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x6e]
mov ecx, 0x10
lea edi, [ebx + 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00410010
add esp, 8
mov eax, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4106a4
mov dword [esi], 8
jmp 0x4106a4
mov eax, esi
test eax, eax
je 0x4106a4
mov dword [eax], 8
push dword [ebp + 0x28]
lea eax, [ebp - 0x3c]
push eax
call fcn.00410010
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4106c9
mov dword [eax], 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret