Function at 0x406990
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], 0x41e493
call fcn.00413da5
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], 0x68ba9a71
jmp 0x406a00
mov dword [ebp - 0x30], 0xbfd1a68f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x30]
cmp eax, 0xa369a923
jg 0x406a20
cmp eax, 0x9e8eef2d
jne 0x406a00
jmp 0x4069ed
cmp eax, 0xa7e908b1
jg 0x406a40
cmp eax, 0xa369a924
jne 0x406a00
mov dword [ebp - 0x30], 0x16b3863a
jmp 0x406a00
cmp eax, 0x68ba9a70
jg 0x406a7f
cmp eax, 0x67d08dbe
jg 0x406aa2
cmp eax, 0x5cb8cc7e
jg 0x406ae8
cmp eax, 0x5323bea5
jg 0x406b06
cmp eax, 0xa8325dff
jg 0x406b1d
cmp eax, 0xa7e908b2
jne 0x406a00
mov dword [ebp - 0x30], 0xbfd1a68f
jmp 0x406a00
cmp eax, 0x68ba9a71
jne 0x406a00
mov eax, 0x9e8eef2d
cmp dword [ebp - 0xc], 0
je 0x406a9a
mov eax, 0xe29a102c
mov dword [ebp - 0x30], eax
jmp 0x406a00
cmp eax, 0x67d08dbf
jne 0x406a00
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.00413f11
mov dword [ebp - 0x28], eax
mov ecx, 0xa7e908b2
cmp eax, dword [ebp - 0x18]
jne 0x406ae0
mov ecx, 0xd1a2221a
mov dword [ebp - 0x30], ecx
jmp 0x406a00
cmp eax, 0x5cb8cc7f
jne 0x406a00
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0xbfd1a68f
jmp 0x406a00
cmp eax, 0x5323bea6
jne 0x406a00
mov dword [ebp - 0x30], 0xa8325e00
jmp 0x406a00
cmp eax, 0xbfd1a68e
jg 0x406b46
cmp eax, 0xa8325e00
jne 0x406a00
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00413ffd
mov dword [ebp - 0x30], 0xa369a924
jmp 0x406a00
cmp eax, 0xd1a22219
jg 0x406b70
cmp eax, 0xbfd1a68f
jne 0x406a00
mov eax, 0x5323bea6
cmp dword [ebp - 0x24], 0
jne 0x406b68
mov eax, 0x16b3863a
mov dword [ebp - 0x30], eax
jmp 0x406a00
cmp eax, 0xe29a102b
jg 0x406b9a
cmp eax, 0xd1a2221a
jne 0x406a00
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 0x2202700b
jmp 0x406a00
cmp eax, 0x16b38639
jg 0x406bd8
cmp eax, 0xe29a102c
jne 0x406a00
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.004025a0
mov dword [ebp - 0x30], 0x2202700b
jmp 0x406a00
cmp eax, 0x2202700b
je 0x406bfd
cmp eax, 0x220ff5f6
jne 0x406c15
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00413ffd
mov dword [ebp - 0x30], 0xa8325e00
jmp 0x406a00
mov eax, 0x67d08dbf
cmp dword [ebp - 0x18], 0
jne 0x406c0d
mov eax, 0x5cb8cc7f
mov dword [ebp - 0x30], eax
jmp 0x406a00
cmp eax, 0x16b3863a
jne 0x406a00
mov eax, dword [ebp - 0x2c]
add esp, 0x38
pop esi
pop edi
pop ebp
ret