Function at 0x407030
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x12c
mov edx, dword [0x4202d8]
mov esi, dword [esp + 0x144]
mov ebx, dword [esp + 0x148]
test edx, edx
je 0x407234
mov eax, dword [0x42068c]
test eax, eax
je 0x407234
imul eax, dword [0x4202d4], 0xc28f5c29
add eax, 0x51eb850
ror eax, 2
cmp eax, 0x28f5c28
jbe 0x407270
mov eax, dword [esp + 0x140]
lea edi, [esp + 0x36]
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 0x407280
mov edx, 0xfffffff7
lea esi, [esi]
imul eax, edx, 0xcccccccd
add eax, 0x19999998
ror eax, 2
cmp eax, 0xccccccc
ja 0x407240
mov byte [esp + edx + 0x49], 0x7c
add edx, 1
cmp ecx, edx
jne 0x4070d0
lea edx, [ecx + 0x13]
lea eax, [ecx + 0x14]
add ecx, 0x15
mov dword [esp + 0x24], ecx
mov byte [esp + edx + 0x36], 0x7c
movzx ecx, byte [ebx]
mov byte [esp + eax + 0x36], 0xa
lea eax, [esi + esi*4]
shl eax, 2
mov byte [esp + 0x2f], cl
lea esi, [eax + 0x13]
mov dword [esp + 0x28], esi
test cl, cl
je 0x4072f8
xor eax, eax
mov esi, 1
xor ebp, ebp
movzx edx, byte [ebx + eax + 1]
mov eax, esi
test ebp, ebp
je 0x407154
lea esi, [esi]
test dl, dl
je 0x407181
lea esi, [eax + 1]
mov ecx, edx
movzx edx, byte [ebx + eax + 1]
mov eax, esi
test ebp, ebp
jne 0x407140
cmp cl, 0x5f
je 0x40717b
cmp cl, 0x3a
je 0x407258
test dl, dl
je 0x4072c0
movzx esi, byte [ebx + eax + 1]
mov ecx, edx
add eax, 1
mov edx, esi
cmp cl, 0x5f
jne 0x407159
mov ebp, eax
test dl, dl
jne 0x407144
sub eax, ebp
add ebx, ebp
mov edx, 0xf
mov esi, dword [esp + 0x28]
cmp eax, 0xf
movzx ecx, byte [ebx]
cmovg eax, edx
add eax, 1
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
sub esi, eax
mov byte [esp + esi + 0x36], 0x3c
lea edx, [esi + 0xf]
lea eax, [esi + 1]
test cl, cl
je 0x4071d3
sub ebx, esi
jmp 0x4071c4
test cl, cl
je 0x4071d3
mov byte [edi + eax], cl
add eax, 1
movzx ecx, byte [ebx + eax - 1]
cmp eax, edx
jle 0x4071c0
mov byte [esp + eax + 0x36], 0x3e
lea edx, [eax + 1]
cmp edx, dword [esp + 0x24]
jb 0x4071ed
mov byte [esp + eax + 0x37], 0xa
add eax, 2
mov dword [esp + 0x24], eax
mov eax, dword [0x4202d0]
test eax, eax
js 0x4071fe
lea eax, [eax + eax*4]
mov byte [esp + eax*4 + 0x49], 0x2f
cmp dword [esp + 0x24], 0xea
ja 0x4072a0
mov eax, dword [0x42068c]
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
call sym._fwrite
add dword [0x4202d4], 1
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [esp + edx + 0x49], 0x20
add edx, 1
cmp edx, ecx
jne 0x4070d0
jmp 0x4070f5
cmp dl, 0x3a
jne 0x407162
lea esi, [eax + 1]
mov ecx, edx
mov ebp, esi
jmp 0x407149
call sym._QSEQ_genHeader
jmp 0x407080
mov dword [esp + 0x24], 0xc
mov eax, 0xb
mov edx, 0xa
jmp 0x407102
mov dword [esp + 4], 0x20c
mov dword [esp], str..._source_qspy_seq.c
call sym._Q_onError
jmp 0x40720c
cmp eax, 0xf
mov edx, 0xf
mov esi, dword [esp + 0x28]
movzx ecx, byte [esp + 0x2f]
cmovg eax, edx
add eax, 1
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
sub esi, eax
mov byte [esp + esi + 0x36], 0x3c
lea edx, [esi + 0xf]
lea eax, [esi + 1]
jmp 0x4071b4
mov byte [esp + eax + 0x49], 0x3c
add eax, 0x14
jmp 0x4071d3