Function at 0x4069e0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov edx, dword [0x4202d8]
mov ebx, dword [esp + 0x134]
mov esi, dword [esp + 0x138]
test edx, edx
je 0x406c33
mov eax, dword [0x42068c]
test eax, eax
je 0x406c33
imul eax, dword [0x4202d4], 0xc28f5c29
add eax, 0x51eb850
ror eax, 2
cmp eax, 0x28f5c28
jbe 0x406c58
mov eax, dword [esp + 0x130]
lea edi, [esp + 0x26]
mov dword [esp + 0xc], str._010u
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0xea
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__snprintf_s]
mov eax, dword [0x4202d8]
lea ecx, [eax + eax*4 - 5]
shl ecx, 2
cmp ecx, 0xfffffff8
jl 0x406c68
mov edx, 0xfffffff7
lea esi, [esi]
imul eax, edx, 0xcccccccd
add eax, 0x19999998
ror eax, 2
cmp eax, 0xccccccc
ja 0x406c40
mov byte [esp + edx + 0x39], 0x7c
add edx, 1
cmp ecx, edx
jne 0x406a80
lea edx, [ecx + 0x13]
lea eax, [ecx + 0x14]
lea ebp, [ecx + 0x15]
mov byte [esp + edx + 0x26], 0x7c
movzx ecx, byte [esi]
lea edx, [ebx + ebx*4]
shl edx, 2
mov byte [esp + eax + 0x26], 0xa
lea eax, [edx + 0x16]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 1]
lea eax, [edx + 0x17]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 2]
lea eax, [edx + 0x18]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 3]
lea eax, [edx + 0x19]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 4]
lea eax, [edx + 0x1a]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 5]
lea eax, [edx + 0x1b]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 6]
lea eax, [edx + 0x1c]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 7]
lea eax, [edx + 0x1d]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 8]
lea eax, [edx + 0x1e]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 9]
lea eax, [edx + 0x1f]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 0xa]
lea eax, [edx + 0x20]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 0xb]
lea eax, [edx + 0x21]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 0xc]
lea eax, [edx + 0x22]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 0xd]
lea eax, [edx + 0x23]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 0xe]
lea eax, [edx + 0x24]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
movzx ecx, byte [esi + 0xf]
lea eax, [edx + 0x25]
test cl, cl
je 0x406bd0
mov byte [esp + eax + 0x26], cl
lea eax, [edx + 0x26]
lea ecx, [eax + 1]
mov byte [esp + eax + 0x26], 0x5d
cmp ecx, ebp
jb 0x406be4
mov byte [esp + eax + 0x27], 0xa
lea ebp, [eax + 2]
mov eax, dword [0x4202d0]
mov byte [esp + edx + 0x3a], 0x3c
lea ecx, [edx + 0x13]
mov byte [esp + edx + 0x3b], 0x3d
test eax, eax
js 0x406c02
lea eax, [eax + eax*4]
mov byte [esp + eax*4 + 0x39], 0x2f
mov byte [esp + ecx + 0x26], 0x2a
cmp ebp, 0xea
ja 0x406c80
mov eax, dword [0x42068c]
mov dword [esp + 8], ebp
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sym._fwrite
add dword [0x4202d4], 1
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [esp + edx + 0x39], 0x20
add edx, 1
cmp edx, ecx
jne 0x406a80
jmp 0x406aa5
call sym._QSEQ_genHeader
jmp 0x406a30
mov ebp, 0xc
mov eax, 0xb
mov edx, 0xa
jmp 0x406aae
mov dword [esp + 4], 0x187
mov dword [esp], str..._source_qspy_seq.c
call sym._Q_onError
jmp 0x406c0f