Function at 0x407f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448ccb
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x461068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x94], ebx
mov esi, ecx
mov dword [ebp - 0x70], esi
push 0x200
push 0
push 0x463c70
mov byte [ebp - 0x65], 0
call fcn.00427180
xor eax, eax
add esp, 0xc
mov dword [ebx + 0xe], eax
mov edx, ebx
mov word [ebx + 0x12], ax
mov ecx, esi
mov dword [ebx + 4], eax
movzx eax, word [ebx + 0xc]
push eax
call fcn.00407d30
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x463c5c
push 0x4024c0
mov dword [ebp - 4], 0
push 0x463c64
mov dword [ebp - 0x24], 0
call fcn.0040e022
add esp, 0xc
test eax, eax
je 0x408747
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0x463c5c
push eax
push 3
push 0x461dec
lea ecx, [ebp - 0x2c]
call fcn.0040a9b0
mov esi, dword [ebp - 0x28]
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
test esi, esi
je 0x408051
lock inc dword [esi + 4]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov edi, esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
test esi, esi
je 0x40806a
lock inc dword [esi + 4]
mov esi, dword [ebp - 0x28]
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 4
test esi, esi
je 0x4080a9
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4080a6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4080a6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x28]
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.0040a310
test al, al
je 0x40828a
mov eax, dword [ebp - 0x6c]
add eax, 0x20
lea ecx, [ebp - 0x4c]
push eax
call fcn.004028b0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040ac10
add esp, 4
movq xmm0, qword [eax]
mov edx, dword [eax + 8]
movq qword [ebp - 0xc0], xmm0
mov eax, dword [ebp - 0xc0]
test edx, edx
je 0x40810c
cmp eax, 1
je 0x40810c
cmp eax, 9
jne 0x40874c
cmp eax, 2
jne 0x408227
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040a210
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.004028b0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xa0]
cmp edx, 8
jb 0x408175
mov ecx, dword [ebp - 0xb4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40816b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40875a
push edx
push ecx
call fcn.00424e9e
add esp, 8
xor eax, eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 7
mov esi, 0x461e80
mov word [ebp - 0xb4], ax
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
mov ecx, esi
cmovae eax, dword [ebp - 0x64]
cmp dword [esi + 0x14], 8
jb 0x4081ac
mov ecx, dword [esi]
push eax
push ecx
call fcn.0042f2bc
add esp, 8
test eax, eax
je 0x4081c7
add esi, 0x18
cmp esi, str._amiop:c:h:s:
jne 0x408197
jmp 0x4081e9
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
push ecx
cmp dword [ebp - 0x14], eax
je 0x4081e0
mov ecx, eax
call fcn.004028b0
add dword [ebp - 0x18], 0x18
jmp 0x4081e9
push eax
lea ecx, [ebp - 0x1c]
call fcn.00409330
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x408227
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40821d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40875a
push edx
push ecx
call fcn.00424e9e
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x408265
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40825b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40875a
push edx
push ecx
call fcn.00424e9e
add esp, 8
lea ecx, [ebp - 0x24]
call fcn.0040a320
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x24]
call fcn.0040a310
test al, al
je 0x408284
mov eax, dword [ebp - 0x24]
jmp 0x4080c3
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 0xb
test edi, edi
je 0x4082b7
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4082b4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x4082b4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [ebp - 0x28]
mov byte [ebp - 4], 0xc
test esi, esi
je 0x4082e0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4082e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4082e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
cmp ecx, edi
je 0x4086d4
push dword [ebp - 0x28]
mov esi, edi
mov eax, 0x2aaaaaab
sub esi, ecx
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, edi
push eax
call fcn.00409730
mov esi, dword [ebp - 0x1c]
add esp, 8
mov eax, dword [ebp - 0x18]
mov edi, 0x463e66
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x28], eax
cmp esi, eax
je 0x40853a
mov ecx, dword [ebx + 4]
movzx eax, word [ebx + 0xe]
movzx esi, word [ebx + 0xc]
mov edx, eax
mov dword [ebp - 0x98], edx
movzx edx, word [ebx + 0xa]
mov dword [ebp - 0x9c], edx
movzx edx, word [ebx + 0x10]
shl eax, 4
mov dword [ebp - 0x30], edx
and edx, 0xf
or edx, eax
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x6c]
lea eax, [ecx*4]
mov ecx, edi
sub ecx, eax
mov word [ecx], dx
mov ecx, esi
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x40837b
mov ecx, dword [esi]
lea edi, [ecx + eax*2]
mov edx, edi
mov esi, edi
call fcn.0040bce0
cmp eax, edi
je 0x4083c5
nop dword [eax + eax]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x40839d
cmp ecx, 0x2f
jne 0x4083a6
add eax, 2
cmp eax, edi
jne 0x408390
jmp 0x4083c5
cmp eax, edi
je 0x4083c5
nop word [eax + eax]
movzx ecx, word [esi - 2]
cmp ecx, 0x5c
je 0x4083c5
cmp ecx, 0x2f
je 0x4083c5
add esi, 0xfffffffe
cmp eax, esi
jne 0x4083b0
sub edi, esi
mov dword [ebp - 0x80], 0
sar edi, 1
lea ecx, [ebp - 0x90]
push edi
xor eax, eax
mov dword [ebp - 0x7c], 7
push esi
mov word [ebp - 0x90], ax
call fcn.004025c0
mov edi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 0x80]
cmp edi, 8
cmovae ecx, dword [ebp - 0x90]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x90]
mov esi, eax
cmovae ecx, dword [ebp - 0x90]
xor edx, edx
sub esi, ecx
inc esi
shr esi, 1
cmp ecx, eax
cmova esi, edx
test esi, esi
je 0x408442
lea ebx, [edx + 0x5c]
cmp word [ecx], 0x2f
jne 0x408431
mov word [ecx], bx
inc edx
add ecx, 2
cmp edx, esi
jne 0x408428
mov ebx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x7c]
cmp edi, 8
lea eax, [ebp - 0x90]
cmovae eax, dword [ebp - 0x90]
push eax
push dword [ebx + 4]
push 0x45a0a0
call fcn.0040b710
mov edx, dword [ebp - 0x7c]
add esp, 0xc
cmp edx, 8
jb 0x4084a0
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408496
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40875a
push edx
push ecx
call fcn.00424e9e
add esp, 8
mov eax, 0x800
cmp word [ebx + 0xe], ax
jae 0x40852d
mov esi, dword [ebp - 0x6c]
mov edx, ebx
mov ecx, dword [ebp - 0x70]
push esi
call fcn.004076d0
mov ecx, dword [ebp - 0x70]
add esp, 4
mov edx, ebx
push 0
call fcn.00407d30
movzx ecx, word [ebx + 0xe]
add esi, 0x18
movzx edx, word [ebx + 0xa]
add esp, 4
imul edx, ecx
movzx ecx, word [ebx + 0xc]
mov byte [ebp - 0x65], al
mov eax, dword [ebp - 0x98]
imul eax, dword [ebp - 0x9c]
add dx, word [ebx + 0x10]
movzx edx, dx
imul edx, ecx
mov ecx, dword [ebx + 4]
add eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x20]
shl ecx, 2
mov dword [ebp - 0x6c], esi
sub dx, ax
mov eax, 0x463e64
sub eax, ecx
mov word [eax], dx
inc dword [ebx + 4]
mov ecx, dword [ebx + 4]
cmp esi, dword [ebp - 0x28]
je 0x40853a
mov edi, 0x463e66
jmp 0x408331
push 0x45a0d0
call fcn.0040b710
add esp, 4
mov edx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00409640
mov ecx, dword [ebp - 0x1c]
add esp, 4
cmp byte [ebp - 0x65], 0
mov edi, ecx
mov dword [ebp - 0x18], edi
je 0x4086d4
mov edi, dword [ebp - 0x70]
mov edx, ebx
mov ecx, edi
call fcn.00407e70
movzx eax, word [ebx + 8]
mov ecx, 0xff
mov word [0x463e6e], ax
movzx eax, word [ebx + 0xa]
and ax, cx
mov dword [ebp - 0x6c], 0x15c1
mov cx, word [ebp - 0x6c]
mov word [0x463e6c], ax
movzx eax, word [ebx + 0xc]
mov word [0x463e6a], ax
mov eax, 0x200
or ax, word [ebx + 4]
mov word [0x463e68], ax
mov esi, dword [ebx + 4]
lea edx, [esi*2 + 4]
test edx, edx
jle 0x4085cb
mov eax, 0x463e6e
nop word [eax + eax]
add cx, word [eax]
lea eax, [eax - 2]
sub edx, 1
jne 0x4085c0
lea eax, [esi*4]
mov edx, 0x463e66
sub edx, eax
mov eax, 0xe00
push 0
mov word [edx], cx
mov ecx, 0x1000
cmp byte [ebx], 0
cmovne eax, ecx
push eax
push edi
call fcn.0042a111
add esp, 0xc
mov ecx, 0x463c70
call fcn.00404610
push edi
push 0x200
push 1
push 0x463c70
call fcn.0042a661
add esp, 0x10
cmp eax, 0x200
je 0x40864a
mov dword [ebx + 0x14], 0xffffffff
mov eax, 0x461e1c
cmp dword [0x461e30], 8
cmovae eax, dword [0x461e1c]
push eax
push 0x45a134
call fcn.0040b710
add esp, 8
mov byte [ebp - 0x65], 0
xor eax, eax
mov ecx, 0x200
cmp byte [ebx], al
push 0
cmovne eax, ecx
push eax
push edi
call fcn.0042a111
mov ecx, 0x80
mov esi, 0x4619e0
mov edi, 0x463c70
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x463c70
call fcn.00404610
mov esi, dword [ebp - 0x70]
push esi
push 0x200
push 1
push 0x463c70
call fcn.0042a661
add esp, 0x10
cmp eax, 0x200
je 0x4086ce
mov dword [ebx + 0x14], 0xffffffff
mov eax, 0x461e1c
cmp dword [0x461e30], 8
cmovae eax, dword [0x461e1c]
push eax
push 0x45a134
call fcn.0040b710
mov edi, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x1c]
xor bl, bl
jmp 0x4086d7
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov bl, byte [ebp - 0x65]
test ecx, ecx
je 0x408729
push ecx
mov edx, edi
call fcn.00409640
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40871f
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40875a
push ecx
push esi
call fcn.00424e9e
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret
call fcn.0042a6b9
lea eax, [ebp - 0x4c]
mov ecx, str.status
push eax
call fcn.0040a280
call fcn.00429c39
int3