Function at 0x406840
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], 0x43b485
call fcn.00419d15
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], 0x4b3f9be5
mov esi, 0xc5d57e9
jmp 0x4068c0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00419d96
mov dword [ebp - 0x30], 0xbdb3c93a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x30]
cmp eax, 0x766a12ba
jg 0x406960
cmp eax, 0x75f01d67
jg 0x406970
cmp eax, 0x6808eef1
jg 0x406987
cmp eax, 0x4b3f9be4
jg 0x4069b4
cmp eax, 0x487ce354
jg 0x4069d7
cmp eax, 0x3799a2a8
jg 0x406a1d
cmp eax, 0x349c89be
jg 0x406a40
cmp eax, 0x2182b35a
jg 0x406a63
cmp eax, 0x1e54870f
jg 0x406a7a
cmp eax, 0xd0f50b50
jg 0x406a91
cmp eax, 0xbdb3c939
jg 0x406aa8
cmp eax, 0x8be3ac4a
je 0x406ab5
cmp eax, 0x8c5cb1f8
jne 0x406ac8
mov dword [ebp - 0x30], 0xd0f50b51
jmp 0x4068c0
cmp eax, 0x766a12bb
jne 0x4068c0
jmp 0x4068a2
cmp eax, 0x75f01d68
jne 0x4068c0
mov dword [ebp - 0x30], 0x8c5cb1f8
jmp 0x4068c0
cmp eax, 0x6808eef2
jne 0x4068c0
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
add eax, esi
sub eax, dword [ebp - 0x28]
add eax, 0xf3a2a817
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 0x349c89bf
jmp 0x4068c0
cmp eax, 0x4b3f9be5
jne 0x4068c0
mov eax, 0x2182b35b
cmp dword [ebp - 0xc], 0
je 0x4069cf
mov eax, 0xb4d2cd19
mov dword [ebp - 0x30], eax
jmp 0x4068c0
cmp eax, 0x487ce355
jne 0x4068c0
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.00419f64
mov dword [ebp - 0x28], eax
mov ecx, 0x75f01d68
cmp eax, dword [ebp - 0x18]
jne 0x406a15
mov ecx, 0x6808eef2
mov dword [ebp - 0x30], ecx
jmp 0x4068c0
cmp eax, 0x3799a2a9
jne 0x4068c0
mov eax, 0x766a12bb
cmp dword [ebp - 0x24], 0
jne 0x406a38
mov eax, 0xbdb3c93a
mov dword [ebp - 0x30], eax
jmp 0x4068c0
cmp eax, 0x349c89bf
jne 0x4068c0
mov eax, 0x487ce355
cmp dword [ebp - 0x18], 0
jne 0x406a5b
mov eax, 0x8be3ac4a
mov dword [ebp - 0x30], eax
jmp 0x4068c0
cmp eax, 0x2182b35b
jne 0x4068c0
mov dword [ebp - 0x30], 0x3799a2a9
jmp 0x4068c0
cmp eax, 0x1e548710
jne 0x4068c0
mov dword [ebp - 0x30], 0x8c5cb1f8
jmp 0x4068c0
cmp eax, 0xd0f50b51
jne 0x4068c0
mov dword [ebp - 0x30], 0x3799a2a9
jmp 0x4068c0
cmp eax, 0xbdb3c93a
jne 0x4068c0
jmp 0x406aff
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0x3799a2a9
jmp 0x4068c0
cmp eax, 0xb4d2cd19
jne 0x4068c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.00402e30
mov dword [ebp - 0x30], 0x349c89bf
jmp 0x4068c0
mov eax, dword [ebp - 0x2c]
add esp, 0x38
pop esi
pop edi
pop ebp
ret