Function at 0x402460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x52b004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x529344
push eax
lea eax, [ebp - 0x410]
mov ebx, edx
push eax
mov edi, ecx
call fcn.0040bcaf
add esp, 0xc
cmp dword [ebp - 0x410], 0
jne 0x4024b1
mov eax, 0x13
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00407a00
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x414], 0
push 0x1bcc
movlpd qword [ebp - 0x448], xmm0
movlpd qword [ebp - 0x440], xmm0
movlpd qword [ebp - 0x438], xmm0
movlpd qword [ebp - 0x41c], xmm0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x428], 0x4079d0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], 0x4079f0
call fcn.0041068b
add esp, 4
mov dword [ebp - 0x44c], eax
test eax, eax
je 0x402810
mov dword [ebp - 0x42c], eax
mov dword [eax + 0x34], 0
mov esi, dword [ebp - 0x42c]
test esi, esi
je 0x4025ae
mov eax, dword [esi + 0x34]
test eax, eax
je 0x402570
cmp dword [esi + 0x24], 0xf
je 0x402570
mov ecx, dword [ebp - 0x424]
push eax
cmp ecx, 0x4079f0
jne 0x40255e
call fcn.0040bcf6
add esp, 4
jmp 0x402569
push dword [ebp - 0x420]
call ecx
add esp, 8
mov dword [esi + 0x34], 0
lea ecx, [ebp - 0x448]
mov dword [esi + 8], 1
mov dword [esi + 0x24], 0xf
call fcn.004043f0
mov esi, eax
test esi, esi
je 0x4025d2
mov eax, dword [ebp - 0x44c]
mov ecx, dword [ebp - 0x424]
push eax
cmp ecx, 0x4079f0
jne 0x4025b5
call fcn.0040bcf6
add esp, 4
jmp 0x4025c0
mov esi, 0xfffffffe
jmp 0x402595
push dword [ebp - 0x420]
call ecx
add esp, 8
mov dword [ebp - 0x42c], 0
test esi, esi
jne 0x402810
xor eax, eax
mov dword [ebp - 0x438], 0x400
mov dword [ebp - 0x444], eax
lea ecx, [ebp - 0x40c]
mov dword [ebp - 0x43c], ecx
mov esi, 0x400
test ebx, ebx
je 0x402695
nop dword [eax]
test eax, eax
jne 0x402617
mov eax, esi
mov dword [ebp - 0x448], edi
cmp ebx, eax
cmovl eax, ebx
mov dword [ebp - 0x444], eax
xor edx, edx
lea ecx, [ebp - 0x448]
call fcn.004045b0
cmp eax, 1
je 0x40268d
test eax, eax
jne 0x402686
mov eax, dword [ebp - 0x444]
test eax, eax
jne 0x402639
add edi, esi
cmp dword [ebp - 0x438], 0
jne 0x402600
push dword [ebp - 0x410]
lea eax, [ebp - 0x40c]
push 0x400
push 1
push eax
call fcn.004108b5
add esp, 0x10
cmp eax, 0x400
jne 0x40267f
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x444]
jmp 0x402600
mov edi, 0x13
jmp 0x4026bf
mov edi, 0x14
jmp 0x4026bf
sub esi, dword [ebp - 0x438]
jmp 0x402697
sub esi, esi
xor edi, edi
test esi, esi
je 0x4026bf
push dword [ebp - 0x410]
lea eax, [ebp - 0x40c]
push esi
push 1
push eax
call fcn.004108b5
add esp, 0x10
mov ecx, 0x13
cmp eax, esi
cmovne edi, ecx
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x4027ef
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x4026f9
cmp eax, 0x45
je 0x4026f9
cmp eax, 0x49
je 0x4026f9
cmp eax, 0x5b
je 0x4026f9
cmp eax, 0x67
je 0x4026f9
cmp eax, 0x71
je 0x4026f9
cmp eax, 0x29a
jne 0x4027ef
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax + 8]
test eax, eax
je 0x40272a
mov ecx, dword [ebp - 0x424]
push eax
cmp ecx, 0x4079f0
jne 0x40271f
call fcn.0040bcf6
add esp, 4
jmp 0x40272a
push dword [ebp - 0x420]
call ecx
add esp, 8
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x40275b
mov ecx, dword [ebp - 0x424]
push eax
cmp ecx, 0x4079f0
jne 0x402750
call fcn.0040bcf6
add esp, 4
jmp 0x40275b
push dword [ebp - 0x420]
call ecx
add esp, 8
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x40278c
mov ecx, dword [ebp - 0x424]
push eax
cmp ecx, 0x4079f0
jne 0x402781
call fcn.0040bcf6
add esp, 4
jmp 0x40278c
push dword [ebp - 0x420]
call ecx
add esp, 8
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4027bd
mov ecx, dword [ebp - 0x424]
push eax
cmp ecx, 0x4079f0
jne 0x4027b2
call fcn.0040bcf6
add esp, 4
jmp 0x4027bd
push dword [ebp - 0x420]
call ecx
add esp, 8
mov eax, dword [ebp - 0x424]
push dword [ebp - 0x42c]
cmp eax, 0x4079f0
jne 0x4027da
call fcn.0040bcf6
add esp, 4
jmp 0x4027e5
push dword [ebp - 0x420]
call eax
add esp, 8
mov dword [ebp - 0x42c], 0
push dword [ebp - 0x410]
call fcn.00409c03
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00407a00
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407a00
mov esp, ebp
pop ebp
ret