Function at 0x40bd60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xf4
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea ebx, [0x482550]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
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], ebx
call fcn.0042a1b9
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], 0x4a0a26d3
mov eax, dword [ebp - 0x38]
mov ecx, eax
sub ecx, 0x8bd4eb48
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
jg 0x40bdf6
jmp 0x40bde0
mov eax, dword [ebp - 0x3c]
sub eax, 0x8852fcca
mov dword [ebp - 0x44], eax
je 0x40c23f
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x9e4c22bd
mov dword [ebp - 0x48], eax
jg 0x40be22
jmp 0x40be0c
mov eax, dword [ebp - 0x3c]
sub eax, 0x8bd4eb49
mov dword [ebp - 0x4c], eax
je 0x40c31a
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0xa5f151c6
mov dword [ebp - 0x50], eax
jg 0x40be4e
jmp 0x40be38
mov eax, dword [ebp - 0x3c]
sub eax, 0x9e4c22be
mov dword [ebp - 0x54], eax
je 0x40c2a5
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0xc241c2bf
mov dword [ebp - 0x58], eax
jg 0x40be7a
jmp 0x40be64
mov eax, dword [ebp - 0x3c]
sub eax, 0xa5f151c7
mov dword [ebp - 0x5c], eax
je 0x40c2ed
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0xd15c2741
mov dword [ebp - 0x60], eax
jg 0x40bea6
jmp 0x40be90
mov eax, dword [ebp - 0x3c]
sub eax, 0xc241c2c0
mov dword [ebp - 0x64], eax
je 0x40c2b1
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x7b4cd435
mov dword [ebp - 0x68], eax
jg 0x40c1b1
jmp 0x40bebc
mov eax, dword [ebp - 0x3c]
sub eax, 0x79590176
mov dword [ebp - 0x6c], eax
jg 0x40c198
jmp 0x40bed2
mov eax, dword [ebp - 0x3c]
sub eax, 0x6117d496
mov dword [ebp - 0x70], eax
jg 0x40c17f
jmp 0x40bee8
mov eax, dword [ebp - 0x3c]
sub eax, 0x571f1586
mov dword [ebp - 0x74], eax
jg 0x40c166
jmp 0x40befe
mov eax, dword [ebp - 0x3c]
sub eax, 0xd25cda23
mov dword [ebp - 0x78], eax
jg 0x40bf2a
jmp 0x40bf14
mov eax, dword [ebp - 0x3c]
sub eax, 0xd15c2742
mov dword [ebp - 0x7c], eax
je 0x40c207
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0xdd3912be
mov dword [ebp - 0x80], eax
jg 0x40bf59
jmp 0x40bf40
mov eax, dword [ebp - 0x3c]
sub eax, 0xd25cda24
mov dword [ebp - 0x84], eax
je 0x40c3b8
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0xe581f0cb
mov dword [ebp - 0x88], eax
jg 0x40bf8b
jmp 0x40bf72
mov eax, dword [ebp - 0x3c]
sub eax, 0xdd3912bf
mov dword [ebp - 0x8c], eax
je 0x40c213
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0xfa9931e1
mov dword [ebp - 0x90], eax
jg 0x40bfbd
jmp 0x40bfa4
mov eax, dword [ebp - 0x3c]
sub eax, 0xe581f0cc
mov dword [ebp - 0x94], eax
je 0x40c38a
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x1917a0dc
mov dword [ebp - 0x98], eax
jg 0x40bfef
jmp 0x40bfd6
mov eax, dword [ebp - 0x3c]
sub eax, 0xfa9931e2
mov dword [ebp - 0x9c], eax
je 0x40c35f
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x28559c72
mov dword [ebp - 0xa0], eax
jg 0x40c021
jmp 0x40c008
mov eax, dword [ebp - 0x3c]
sub eax, 0x1917a0dd
mov dword [ebp - 0xa4], eax
je 0x40c37c
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x2941ac3d
mov dword [ebp - 0xa8], eax
jg 0x40c053
jmp 0x40c03a
mov eax, dword [ebp - 0x3c]
sub eax, 0x28559c73
mov dword [ebp - 0xac], eax
je 0x40c1fa
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x3406caf7
mov dword [ebp - 0xb0], eax
jg 0x40c085
jmp 0x40c06c
mov eax, dword [ebp - 0x3c]
sub eax, 0x2941ac3e
mov dword [ebp - 0xb4], eax
je 0x40c344
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x41e23973
mov dword [ebp - 0xb8], eax
jg 0x40c0b7
jmp 0x40c09e
mov eax, dword [ebp - 0x3c]
sub eax, 0x3406caf8
mov dword [ebp - 0xbc], eax
je 0x40c327
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x4a0a26d2
mov dword [ebp - 0xc0], eax
jg 0x40c0e9
jmp 0x40c0d0
mov eax, dword [ebp - 0x3c]
sub eax, 0x41e23974
mov dword [ebp - 0xc4], eax
je 0x40c2fa
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x51b8a28b
mov dword [ebp - 0xc8], eax
jg 0x40c11b
jmp 0x40c102
mov eax, dword [ebp - 0x3c]
sub eax, 0x4a0a26d3
mov dword [ebp - 0xcc], eax
je 0x40c1cf
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x51b8a28c
mov dword [ebp - 0xd0], eax
je 0x40c25b
jmp 0x40c134
mov eax, dword [ebp - 0x3c]
sub eax, 0x536445a6
mov dword [ebp - 0xd4], eax
je 0x40c396
jmp 0x40c14d
mov eax, dword [ebp - 0x3c]
sub eax, 0x541d45a5
mov dword [ebp - 0xd8], eax
je 0x40c3cb
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x571f1587
mov dword [ebp - 0xdc], eax
je 0x40c1ed
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x6117d497
mov dword [ebp - 0xe0], eax
je 0x40c2e1
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x79590177
mov dword [ebp - 0xe4], eax
je 0x40c30e
jmp 0x40c1ca
mov eax, dword [ebp - 0x3c]
sub eax, 0x7b4cd436
mov dword [ebp - 0xe8], eax
je 0x40c2be
jmp 0x40c1ca
jmp 0x40c3d2
mov eax, 0xdd3912bf
mov ecx, 0x571f1587
mov edx, dword [ebp - 0x14]
cmp edx, 0
cmove eax, ecx
mov dword [ebp - 0x38], eax
jmp 0x40c3d2
mov eax, 0x28559c73
mov dword [ebp - 0x38], eax
jmp 0x40c3d2
mov eax, 0xd15c2742
mov dword [ebp - 0x38], eax
jmp 0x40c3d2
mov dword [ebp - 0x38], 0x8bd4eb49
jmp 0x40c3d2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.00406020
mov dword [ebp - 0x38], 0x8852fcca
jmp 0x40c3d2
mov eax, 0xa5f151c7
mov ecx, 0x51b8a28c
cmp dword [ebp - 0x20], 0
cmovne eax, ecx
mov dword [ebp - 0x38], eax
jmp 0x40c3d2
mov eax, 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov dword [esp], esi
mov dword [esp + 4], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [ebp - 0xec], eax
call fcn.0042a325
mov ecx, 0xc241c2c0
mov edx, 0x9e4c22be
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x20]
cmovne ecx, edx
mov dword [ebp - 0x38], ecx
jmp 0x40c3d2
mov dword [ebp - 0x38], 0x8bd4eb49
jmp 0x40c3d2
mov eax, 0x7b4cd436
mov dword [ebp - 0x38], eax
jmp 0x40c3d2
mov eax, 0x6117d497
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
add edx, ecx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x38], eax
jmp 0x40c3d2
mov dword [ebp - 0x38], 0x8852fcca
jmp 0x40c3d2
mov eax, 0x41e23974
mov dword [ebp - 0x38], eax
jmp 0x40c3d2
mov eax, 0x79590177
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], eax
jmp 0x40c3d2
mov dword [ebp - 0x38], 0x8bd4eb49
jmp 0x40c3d2
mov eax, 0x3406caf8
mov dword [ebp - 0x38], eax
jmp 0x40c3d2
mov eax, 0x2941ac3e
cmp dword [ebp - 0x2c], 0
setne cl
and cl, 1
mov byte [ebp - 0xd], cl
mov dword [ebp - 0x38], eax
jmp 0x40c3d2
mov eax, 0x1917a0dd
mov ecx, 0xfa9931e2
mov dl, byte [ebp - 0xd]
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x38], eax
jmp 0x40c3d2
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.0042a40f
mov dword [ebp - 0x38], 0x1917a0dd
mov dword [ebp - 0xf0], eax
jmp 0x40c3d2
mov eax, dword [ebp - 0x34]
add esp, 0xf4
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x38], 0x28559c73
jmp 0x40c3d2
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x38], 0x7b4cd436
jmp 0x40c3d2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0x41e23974
jmp 0x40c3d2
mov dword [ebp - 0x38], 0x3406caf8
jmp 0x40bdc4