Function at 0x404da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x40
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 - 0x18], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov dword [esp + 4], 0x46c4a0
call fcn.00412b91
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], 0x80ae3b73
mov esi, 0x16577a32
jmp 0x404e10
mov dword [ebp - 0x38], 0x5e0e2b12
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x38]
cmp eax, 0x7e35d5f4
jg 0x404e80
cmp eax, 0x68385740
jg 0x404e90
cmp eax, 0x65473967
jg 0x404ed6
cmp eax, 0x5e0e2b11
jg 0x404efa
cmp eax, 0x5432d2ab
jg 0x404f11
cmp eax, 0x3ae0979b
jg 0x404f21
cmp eax, 0x3467694b
jg 0x404f3f
cmp eax, 0x81776bab
jg 0x404f56
cmp eax, 0x80ae3b73
jne 0x404e10
mov eax, 0x281142e6
cmp dword [ebp - 0x14], 0
je 0x404e7a
mov eax, 0xf7b20355
mov dword [ebp - 0x38], eax
jmp 0x404e10
cmp eax, 0x7e35d5f5
jne 0x404e10
jmp 0x404e02
cmp eax, 0x68385741
jne 0x404e10
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.00412cfd
mov dword [ebp - 0x30], eax
mov ecx, 0xb311a80
cmp eax, dword [ebp - 0x20]
jne 0x404ece
mov ecx, 0x9d3b5fa9
mov dword [ebp - 0x38], ecx
jmp 0x404e10
cmp eax, 0x65473968
jne 0x404e10
mov al, byte [ebp - 0xd]
test al, al
mov eax, 0x68385741
jne 0x404ef2
mov eax, 0x3ae0979c
mov dword [ebp - 0x38], eax
jmp 0x404e10
cmp eax, 0x5e0e2b12
jne 0x404e10
mov dword [ebp - 0x38], 0x88a697b
jmp 0x404e10
cmp eax, 0x5432d2ac
jne 0x404e10
jmp 0x405122
cmp eax, 0x3ae0979c
jne 0x404e10
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0x862fd679
jmp 0x404e10
cmp eax, 0x3467694c
jne 0x404e10
mov dword [ebp - 0x38], 0x862fd679
jmp 0x404e10
cmp eax, 0x862fd678
jg 0x404f6d
cmp eax, 0x81776bac
jne 0x404e10
jmp 0x40515b
cmp eax, 0x8a943bf3
jg 0x404f97
cmp eax, 0x862fd679
jne 0x404e10
mov eax, 0xb23303f8
cmp dword [ebp - 0x2c], 0
jne 0x404f8f
mov eax, 0x5432d2ac
mov dword [ebp - 0x38], eax
jmp 0x404e10
cmp eax, 0x9d3b5fa8
jg 0x404fc1
cmp eax, 0x8a943bf4
jne 0x404e10
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0x7e35d5f5
jmp 0x404e10
cmp eax, 0xb23303f7
jg 0x404fdf
cmp eax, 0x9d3b5fa9
jne 0x404e10
mov dword [ebp - 0x38], 0x8a943bf4
jmp 0x404e10
cmp eax, 0xc36c3fb4
jg 0x405008
cmp eax, 0xb23303f8
jne 0x404e10
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00412de7
mov dword [ebp - 0x38], 0x5432d2ac
jmp 0x404e10
cmp eax, 0xe51b48eb
jg 0x405026
cmp eax, 0xc36c3fb5
jne 0x404e10
mov dword [ebp - 0x38], 0x3467694c
jmp 0x404e10
cmp eax, 0xf7b20354
jg 0x40504a
cmp eax, 0xe51b48ec
jne 0x404e10
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x38], 0x81776bac
jmp 0x404e10
cmp eax, 0xf896ee54
jg 0x405088
cmp eax, 0xf7b20355
jne 0x404e10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.004020c0
mov dword [ebp - 0x38], 0x5e0e2b12
jmp 0x404e10
cmp eax, 0x88a697a
jg 0x4050a6
cmp eax, 0xf896ee55
jne 0x404e10
mov dword [ebp - 0x38], 0x88a697b
jmp 0x404e10
cmp eax, 0xb311a7f
jg 0x4050cc
cmp eax, 0x88a697b
jne 0x404e10
cmp dword [ebp - 0x20], 0
setne byte [ebp - 0xd]
mov dword [ebp - 0x38], 0x65473968
jmp 0x404e10
cmp eax, 0x15d63af4
jg 0x4050ea
cmp eax, 0xb311a80
jne 0x404e10
mov dword [ebp - 0x38], 0x862fd679
jmp 0x404e10
cmp eax, 0x21f54b50
jg 0x405108
cmp eax, 0x15d63af5
jne 0x404e10
mov dword [ebp - 0x38], 0xc36c3fb5
jmp 0x404e10
cmp eax, 0x21f54b51
je 0x405122
cmp eax, 0x281142e6
jne 0x40512e
mov dword [ebp - 0x38], 0xc36c3fb5
jmp 0x404e10
mov dword [ebp - 0x38], 0xe51b48ec
jmp 0x404e10
cmp eax, 0x28331c61
jne 0x404e10
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
add eax, esi
sub eax, dword [ebp - 0x30]
add eax, 0xe9a885ce
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0x8a943bf4
jmp 0x404e10
mov eax, dword [ebp - 0xc]
add esp, 0x40
pop esi
pop edi
pop ebp
ret