Function at 0x406670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0x41d48c
call fcn.004139f5
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], 0xa233585a
jmp 0x4066e0
mov dword [ebp - 0x30], 0x151b8f6c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x30]
cmp eax, 0xa2335859
jg 0x406700
cmp eax, 0x9f7677b4
jne 0x4066e0
jmp 0x4066cd
cmp eax, 0xa6c61ff8
jg 0x406730
cmp eax, 0xa233585a
jne 0x4066e0
mov eax, 0xf15529b0
cmp dword [ebp - 0xc], 0
je 0x40671e
mov eax, 0x625fa00f
mov dword [ebp - 0x30], eax
jmp 0x4066e0
cmp eax, 0xbb5385ab
jg 0x406743
cmp eax, 0xa6c61ff9
jne 0x4066e0
jmp 0x40694b
cmp eax, 0xc59f5740
jg 0x406768
cmp eax, 0xbb5385ac
jne 0x4066e0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00413a76
mov dword [ebp - 0x30], 0xa6c61ff9
jmp 0x4066e0
cmp eax, 0xc7459f62
jg 0x406786
cmp eax, 0xc59f5741
jne 0x4066e0
mov dword [ebp - 0x30], 0xf3e8ff1b
jmp 0x4066e0
cmp eax, 0xf15529af
jg 0x4067a4
cmp eax, 0xc7459f63
jne 0x4066e0
mov dword [ebp - 0x30], 0x151b8f6c
jmp 0x4066e0
cmp eax, 0xf3e8ff1a
jg 0x4067c2
cmp eax, 0xf15529b0
jne 0x4066e0
mov dword [ebp - 0x30], 0x3c9f0f21
jmp 0x4066e0
cmp eax, 0x151b8f6b
jg 0x4067ec
cmp eax, 0xf3e8ff1b
jne 0x4066e0
mov eax, 0xbb5385ac
cmp dword [ebp - 0x24], 0
jne 0x4067e4
mov eax, 0xa6c61ff9
mov dword [ebp - 0x30], eax
jmp 0x4066e0
cmp eax, 0x1c303cc3
jg 0x40680a
cmp eax, 0x151b8f6c
jne 0x4066e0
mov dword [ebp - 0x30], 0xc59f5741
jmp 0x4066e0
cmp eax, 0x3221998c
jg 0x40682f
cmp eax, 0x1c303cc4
jne 0x4066e0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0xf3e8ff1b
jmp 0x4066e0
cmp eax, 0x3a3e873c
jg 0x40687c
cmp eax, 0x3221998d
jne 0x4066e0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.00413c44
mov dword [ebp - 0x28], eax
mov ecx, 0xc7459f63
cmp eax, dword [ebp - 0x18]
jne 0x406874
mov ecx, 0x72271212
mov dword [ebp - 0x30], ecx
jmp 0x4066e0
cmp eax, 0x3c2fad21
jg 0x40689a
cmp eax, 0x3a3e873d
jne 0x4066e0
mov dword [ebp - 0x30], 0x3c9f0f21
jmp 0x4066e0
cmp eax, 0x72271211
jg 0x4068c2
cmp eax, 0x712d3ab8
jg 0x4068e5
cmp eax, 0x3c2fad22
je 0x406908
cmp eax, 0x3c9f0f21
jne 0x406914
mov dword [ebp - 0x30], 0x3c2fad22
jmp 0x4066e0
cmp eax, 0x72271212
jne 0x4066e0
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 0x712d3ab9
jmp 0x4066e0
cmp eax, 0x712d3ab9
jne 0x4066e0
mov eax, 0x3221998d
cmp dword [ebp - 0x18], 0
jne 0x406900
mov eax, 0x1c303cc4
mov dword [ebp - 0x30], eax
jmp 0x4066e0
mov dword [ebp - 0x30], 0xf3e8ff1b
jmp 0x4066e0
cmp eax, 0x625fa00f
jne 0x4066e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.004025f0
mov dword [ebp - 0x30], 0x712d3ab9
jmp 0x4066e0
mov eax, dword [ebp - 0x2c]
add esp, 0x38
pop esi
pop edi
pop ebp
ret