Function at 0x40c630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x10], 0xacfc1a6a
mov eax, dword [ebp - 0x10]
shl eax, 5
xor ecx, ecx
cmp eax, 0x47d1e51b
setne cl
mov edx, dword [ebp - 0x10]
imul edx, dword [ebp - 0x10]
xor edx, ecx
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
test edx, edx
je 0x40c67b
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x3014d70e
xor ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
push 3
push str.SetFilePointer
call fcn.00403110
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x76823a01
mov dword [ebp - 0x28], 0x4c043076
mov dword [ebp - 4], 0x4ed9039f
mov eax, dword [ebp - 0x28]
imul eax, eax, 0xcfb813dc
imul eax, eax, 0x8db8d096
or eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x28]
sub ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 4]
imul edx, edx, 0xa620dbba
xor edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00421c62
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x2227bf91
mov dword [ebp - 0x24], 0x214273b2
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x18]
or ecx, 0x143999a
je 0x40c865
mov edx, 0x75928a85
test edx, edx
je 0x40c865
xor eax, eax
je 0x40c865
mov ecx, dword [ebp - 0x24]
shl ecx, 9
mov edx, dword [ebp - 0x18]
sar edx, 8
mov eax, dword [ebp - 0x24]
sar eax, 6
imul edx, eax
xor eax, eax
cmp edx, 0xf49dc28e
setge al
and ecx, eax
xor ecx, 0xfd733617
je 0x40c779
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
imul edx, edx, 0x9d593df4
or edx, 0x4894e41b
mov eax, dword [ebp - 0x18]
sub eax, edx
mov dword [ebp - 0x18], eax
jmp 0x40c865
mov ecx, dword [ebp - 0x18]
sar ecx, 7
xor edx, edx
cmp ecx, 0xee17590c
setne dl
and edx, 0xcb04270f
or edx, 0x405094c
je 0x40c830
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x6f62c62f
cmp dword [ebp - 0x24], ecx
jg 0x40c82e
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x18]
jge 0x40c822
mov eax, dword [ebp - 0x18]
add eax, 0x1c03dbea
xor ecx, ecx
cmp dword [ebp - 0x18], 0xc93af8a9
setl cl
mov edx, dword [ebp - 0x24]
sar edx, 7
sub edx, 0x7ca0f0a
and edx, ecx
xor edx, eax
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
test edx, edx
je 0x40c7fa
mov ecx, dword [ebp - 0x18]
sub ecx, 0x12816bd2
mov dword [ebp - 0x18], ecx
jmp 0x40c820
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
xor eax, eax
cmp dword [ebp - 0x24], 0xbbcf02d8
setge al
xor eax, dword [ebp - 0x24]
je 0x40c820
mov ecx, dword [ebp - 0x24]
xor ecx, 0x49f4d1bb
mov dword [ebp - 0x24], ecx
jmp 0x40c82e
mov edx, dword [ebp - 0x18]
and edx, 0x8b68cec8
mov dword [ebp - 0x18], edx
jmp 0x40c865
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp eax, dword [ebp - 0x18]
sete cl
and ecx, 0xd11cbd75
and ecx, 0xdcafcdee
je 0x40c865
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
xor eax, 0x9e9feeec
xor eax, 0x880f9428
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
jne 0x40cb14
mov dword [ebp - 0x30], 0x20dcd8bb
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
sub edx, 0x583ab6f
mov eax, dword [ebp - 0x30]
imul eax, eax, 0xd0ce7976
xor ecx, ecx
cmp eax, edx
setg cl
xor ecx, 0xfee9cb7c
or ecx, 0x6f8f9d83
je 0x40c8af
mov dword [ebp - 0x30], 0x497225b
jmp 0x40c8d8
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
sub eax, 0x76c89626
xor ecx, ecx
cmp eax, 0xe7506b55
setne cl
xor ecx, dword [ebp - 0x30]
je 0x40c8d8
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x30], edx
push 0x3e8
call dword [0x43822c]
mov dword [ebp - 0x38], 0x4537bf3e
mov eax, dword [ebp - 0x38]
or eax, 0x17cb1d2c
xor eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
xor ecx, 0x479a2658
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00421c62
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], 0xb6c9d4ff
mov dword [ebp - 0x34], 0xedbe9922
mov ecx, dword [ebp - 0x34]
sub ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x2c]
imul edx, dword [ebp - 0x34]
add edx, 0x5325b5d2
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
cmp edx, eax
jg 0x40c954
mov dword [ebp - 0x48], 1
jmp 0x40c95b
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x2c]
imul edx, edx, 0xb2c8ad6d
xor edx, dword [ebp - 0x48]
je 0x40c979
mov eax, dword [ebp - 0x34]
xor eax, 0x7879ebcc
mov dword [ebp - 0x34], eax
jmp 0x40cb14
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
cmp ecx, 0x8cab1da5
jge 0x40c996
mov dword [ebp - 0x4c], 1
jmp 0x40c99d
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
or eax, 0xb32cb79f
je 0x40c9c5
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
and edx, 0x59fd17ed
imul edx, dword [ebp - 0x34]
mov dword [ebp - 0x34], edx
jmp 0x40cb14
mov eax, 1
test eax, eax
je 0x40c9fa
mov ecx, dword [ebp - 0x34]
sar ecx, 4
xor edx, edx
cmp dword [ebp - 0x2c], 0xdfa2c65d
setg dl
xor ecx, edx
or ecx, 0xaf24c84b
je 0x40c9f5
mov eax, dword [ebp - 0x2c]
sub eax, 0x48df73b5
mov dword [ebp - 0x2c], eax
jmp 0x40cb14
mov ecx, dword [ebp - 0x34]
add ecx, 0x6a23cda
cmp ecx, 0x2142e7bf
jle 0x40ca84
mov edx, 1
test edx, edx
je 0x40ca2b
mov eax, dword [ebp - 0x34]
sub eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x34]
xor ecx, dword [ebp - 0x34]
mov dword [ebp - 0x34], ecx
jmp 0x40ca7f
mov edx, dword [ebp - 0x34]
sub edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x34]
imul ecx, dword [ebp - 0x2c]
xor edx, edx
cmp ecx, 0x92772f7d
sete dl
xor edx, 0x42bc0d23
je 0x40ca7f
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, 0x2c63887e
sub ecx, dword [ebp - 0x34]
sub ecx, 0x512d4113
cmp ecx, 0x30727529
jge 0x40ca7f
mov edx, dword [ebp - 0x2c]
and edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], edx
jmp 0x40cb14
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
cmp eax, 0xdd727921
jl 0x40caa4
mov dword [ebp - 0x50], 1
jmp 0x40caab
mov dword [ebp - 0x50], 0
mov edx, dword [ebp - 0x2c]
and edx, dword [ebp - 0x50]
and edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
test edx, edx
je 0x40cad5
mov ecx, dword [ebp - 0x34]
sub ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x2c]
xor edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], edx
jmp 0x40cb14
mov eax, dword [ebp - 0x34]
sar eax, 4
xor ecx, ecx
cmp eax, 0x9d81caf0
setg cl
and ecx, dword [ebp - 0x34]
and ecx, dword [ebp - 0x2c]
or ecx, 0xbf333f3a
or ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
test ecx, ecx
je 0x40cb14
mov eax, 0x2c5f91
sub eax, dword [ebp - 0x34]
xor eax, 0x84827033
or eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x14], 0
je 0x40cca8
mov dword [ebp - 0x3c], 0x7e77c091
xor ecx, ecx
je 0x40cb35
mov edx, dword [ebp - 0x3c]
and edx, 0xa4695ac5
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
push eax
push 1
push 4
lea ecx, [ebp + 0xc]
push ecx
call fcn.004229d8
add esp, 0x10
mov dword [ebp - 0x40], 0x54b8998e
mov edx, dword [ebp - 0x40]
imul edx, dword [ebp - 0x40]
add edx, 0x36985a5c
xor eax, eax
cmp edx, 0x60a90411
sete al
xor eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x40]
je 0x40cc64
xor ecx, ecx
je 0x40cc3f
xor edx, edx
je 0x40cc2f
mov eax, dword [ebp - 0x40]
sar eax, 3
mov ecx, dword [ebp - 0x40]
shl ecx, 1
mov edx, dword [ebp - 0x40]
sub edx, ecx
xor ecx, ecx
cmp edx, eax
setle cl
and ecx, 0xa026545c
or ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
test ecx, ecx
je 0x40cc2d
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x40]
sub ecx, 1
mov dword [ebp - 0x40], ecx
cmp eax, 0x36d00883
je 0x40cbcd
mov dword [ebp - 0x54], 1
jmp 0x40cbd4
mov dword [ebp - 0x54], 0
mov edx, dword [ebp - 0x40]
and edx, dword [ebp - 0x54]
xor edx, dword [ebp - 0x40]
or edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
test edx, edx
je 0x40cc2d
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
shl edx, 5
imul edx, edx, 0x9cc05366
xor eax, eax
cmp edx, 0xacf09838
setl al
or eax, dword [ebp - 0x40]
je 0x40cc2d
mov ecx, dword [ebp - 0x40]
sub ecx, 0x1fea4e74
xor ecx, dword [ebp - 0x40]
or ecx, dword [ebp - 0x40]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
jmp 0x40cc3d
mov eax, dword [ebp - 0x40]
or eax, 0xba52095a
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
jmp 0x40cc62
mov ecx, dword [ebp - 0x40]
sub ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
sub edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
or eax, 0xbca0ee3
or eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
jmp 0x40cc70
mov ecx, dword [ebp - 0x40]
add ecx, 0xf2ffa78
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004227fa
add esp, 4
mov dword [ebp - 0x44], 0x4205a229
xor eax, eax
cmp dword [ebp - 0x44], 0xdeb65315
setne al
or eax, 0xca230
je 0x40cca8
mov ecx, dword [ebp - 0x44]
sub ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
and edx, dword [ebp - 0x44]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x20], 0x6ba6adb2
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0xd61f8653
xor ecx, dword [ebp - 0x20]
or ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
sar edx, 9
add edx, 0x8e3df92
xor eax, eax
cmp edx, 0x5db7b5a4
sete al
and eax, 0x9de438ce
or eax, 0x64e69ce5
je 0x40cd33
mov ecx, dword [ebp - 0x20]
shl ecx, 8
mov edx, dword [ebp - 0x20]
sar edx, 1
imul edx, ecx
add edx, dword [ebp - 0x20]
mov eax, 0x1664f39b
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
cmp eax, edx
jne 0x40cd33
mov edx, dword [ebp - 0x20]
sub edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
shl eax, 9
mov ecx, dword [ebp - 0x20]
sar ecx, 1
add ecx, dword [ebp - 0x20]
add ecx, eax
imul ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
push edx
push 3
call fcn.00401c00
add esp, 8
mov dword [ebp - 0x1c], 0x771d5fd8
mov eax, dword [ebp - 0x1c]
add eax, 0x6ef4c8b2
cmp eax, 0x41d8bf0b
jne 0x40cdba
mov ecx, dword [ebp - 0x1c]
sar ecx, 3
xor edx, edx
cmp ecx, 0x6ab9741
setge dl
and edx, 0x1fa1f3ff
and edx, 0x2053c389
je 0x40cdba
xor eax, eax
cmp dword [ebp - 0x1c], 0xf83df8fa
setle al
and eax, 0xe7f179e0
je 0x40cda5
mov ecx, dword [ebp - 0x1c]
imul ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x1c]
cmp ecx, edx
jne 0x40cda3
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
jmp 0x40cdba
mov ecx, dword [ebp - 0x1c]
sar ecx, 7
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
sub edx, 1
mov dword [ebp - 0x1c], edx
mov esp, ebp
pop ebp
ret