Function at 0x412bd0
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 0x412f6c
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x412f6c
cmp dword [ebp + 0x1c], 0
je 0x412f6c
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
je 0x412f6c
cmp dword [edi + 0xc], 0x100
je 0x412c8b
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x412f79
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.0040fc80
add esp, 0xc
cmp eax, 0xffffffff
je 0x412cb4
push 0xc
call fcn.00409565
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x412cca
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x412f54
mov dword [eax], 3
jmp 0x412f54
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 0x412d4c
push dword [edi + 0xc]
call fcn.00409565
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 0x412d9c
push dword [edi + 0xc]
push 0
push eax
call fcn.00407790
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.00410cd7
add esp, 0x18
cmp eax, 0xffffffff
je 0x412d37
cmp eax, dword [edi + 0xc]
je 0x412dfe
mov eax, esi
test eax, eax
je 0x412f54
mov dword [eax], 0xd
jmp 0x412f54
cmp al, 0x54
jne 0x412f48
push 0xc
call fcn.00409565
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x412d9c
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.00409565
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 0x412db1
mov eax, esi
test eax, eax
je 0x412f54
mov dword [eax], 3
jmp 0x412f54
push dword [eax + 4]
push 0
push ecx
call fcn.00407790
mov eax, dword [ebp - 4]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp + 0xc]
push eax
call fcn.00410cd7
add esp, 0x18
cmp eax, 0xffffffff
je 0x412d37
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 4]
jne 0x412d37
push dword [ebp + 0x28]
push esi
push dword [ebp - 8]
push ecx
call fcn.00414800
add esp, 0x10
test ax, ax
je 0x412f54
mov edi, dword [ebp + 0x20]
lea eax, [edi*8]
push eax
call fcn.00409565
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x412e56
lea ecx, [edi*8]
push ecx
push 0
push eax
call fcn.00407790
add esp, 0xc
cmp edi, 6
jae 0x412e43
test esi, esi
je 0x412f54
mov dword [esi], 4
jmp 0x412f54
push edi
lfence
call fcn.00409565
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x412e69
test esi, esi
je 0x412f54
mov dword [esi], 3
jmp 0x412f54
push edi
push 0
push eax
lfence
call fcn.00407790
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.00414a50
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 0x412f3c
movzx eax, word [ebx + 4]
cmp ax, word [ecx + 4]
jne 0x412f3c
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.004129a0
add esp, 8
mov eax, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x412f54
mov dword [esi], 8
jmp 0x412f54
mov eax, esi
test eax, eax
je 0x412f54
mov dword [eax], 8
push dword [ebp + 0x28]
lea eax, [ebp - 0x3c]
push eax
call fcn.004129a0
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 0x412f79
mov dword [eax], 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret