Function at 0x40a750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x463218]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a3344], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x100], esi
je 0x40aa83
cmp dword [0x4a3340], 0
je 0x40aa83
mov eax, dword [0x4a36f8]
test ebx, ebx
cmovs ebx, eax
test edi, edi
cmovs edi, eax
test ebx, ebx
js 0x40aa83
test edi, edi
js 0x40aa83
cmp ebx, eax
jne 0x40a7ba
cmp edi, eax
je 0x40aa83
mov ecx, dword [0x4a3474]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
sub ecx, eax
jne 0x40a7dd
call fcn.0040a540
push dword [ebp + 8]
lea eax, [ebp - 0xf0]
push str._010u
push 0xffffffffffffffff
push 0xea
push eax
call fcn.004073c0
mov eax, dword [0x4a3344]
mov ecx, 0xa
add esp, 0x14
mov dword [ebp - 0xfc], 0x14
lea eax, [eax + eax*4]
lea eax, [eax*4 - 1]
cmp eax, ecx
jle 0x40a846
mov esi, eax
nop
lea eax, [ecx - 0x13]
cdq
idiv dword [ebp - 0xfc]
neg edx
sbb dl, dl
and dl, 0xa4
add dl, 0x7c
mov byte [ebp + ecx - 0xf0], dl
inc ecx
cmp ecx, esi
jl 0x40a820
mov esi, dword [ebp - 0x100]
mov word [ebp + ecx - 0xf0], 0xa7c
mov edx, 0x7e
add ecx, 2
mov eax, 0x2d
mov dword [ebp - 0xf4], ecx
mov ch, byte [ebp + 0x18]
test ch, ch
cmovne eax, edx
lea edx, [ebx + ebx*4]
shl edx, 2
mov dword [ebp - 0x104], eax
mov dword [ebp - 0xf8], edx
cmp ebx, edi
jge 0x40a917
lea eax, [edi + edi*4]
lea ebx, [eax*4 + 0x13]
lea ecx, [edx + 0x13]
mov dword [ebp - 0xfc], ebx
cmp ecx, ebx
jge 0x40a8d8
mov edi, edx
mov esi, 0x14
mov eax, edi
mov ebx, dword [ebp - 0x104]
cdq
idiv esi
movzx eax, bl
test edx, edx
mov edx, 0x2b
cmove eax, edx
inc edi
mov byte [ebp + ecx - 0xf0], al
inc ecx
cmp ecx, dword [ebp - 0xfc]
jl 0x40a8a3
mov esi, dword [ebp - 0x100]
mov edx, dword [ebp - 0xf8]
mov byte [ebp + ecx - 0xf1], 0x3e
lea eax, [edx + 0x16]
mov cl, byte [esi]
test cl, cl
je 0x40a909
add edx, 0x25
sub esi, eax
nop
cmp eax, edx
jge 0x40a903
mov byte [ebp + eax - 0xf0], cl
inc eax
mov cl, byte [esi + eax]
test cl, cl
jne 0x40a8f0
mov edx, dword [ebp - 0xf8]
mov ebx, dword [ebp - 0xf4]
mov ch, byte [ebp + 0x18]
jmp 0x40aa21
jle 0x40a9d3
lea ebx, [edi + edi*4]
shl ebx, 2
lea eax, [edx + 0x13]
mov dword [ebp - 0x108], ebx
lea ecx, [ebx + 0x13]
cmp ecx, eax
jge 0x40a980
mov edi, ebx
mov esi, eax
mov bl, byte [ebp + 0x18]
nop word [eax + eax]
mov eax, edi
cdq
idiv dword [ebp - 0xfc]
test edx, edx
jne 0x40a952
lea eax, [edx + 0x2b]
jmp 0x40a961
test bl, bl
mov eax, 0x2d
mov edx, 0x7e
cmovne eax, edx
mov byte [ebp + ecx - 0xf0], al
inc edi
inc ecx
cmp ecx, esi
jl 0x40a940
mov esi, dword [ebp - 0x100]
mov edx, dword [ebp - 0xf8]
mov ebx, dword [ebp - 0x108]
mov ecx, esi
mov word [ebp + ebx - 0xdd], 0x3c7c
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a990
sub ecx, edi
mov eax, 0xf
cmp ecx, eax
cmovg ecx, eax
mov eax, edx
sub eax, ecx
mov cl, byte [esi]
add eax, 0x11
lea edi, [eax + 0xf]
test cl, cl
je 0x40a9c8
sub esi, eax
cmp eax, edi
jge 0x40a9c8
mov byte [ebp + eax - 0xf0], cl
inc eax
mov cl, byte [esi + eax]
test cl, cl
jne 0x40a9b5
mov ebx, dword [ebp - 0xf4]
mov ch, byte [ebp + 0x18]
jmp 0x40aa21
mov cl, byte [esi]
lea eax, [edx + 0x16]
lea edx, [eax + 0xf]
test cl, cl
je 0x40a9f3
nop
cmp eax, edx
jge 0x40a9f3
inc esi
mov byte [ebp + eax - 0xf0], cl
inc eax
mov cl, byte [esi]
test cl, cl
jne 0x40a9e0
mov ebx, dword [ebp - 0xf4]
mov byte [ebp + eax - 0xf0], 0x5d
inc eax
cmp ebx, eax
ja 0x40aa11
mov byte [ebp + eax - 0xf0], 0xa
lea ebx, [eax + 1]
mov edx, dword [ebp - 0xf8]
mov word [ebp + edx - 0xdc], 0x2d3c
mov eax, dword [0x4a36f8]
test eax, eax
js 0x40aa35
lea eax, [eax + eax*4]
mov byte [ebp + eax*4 - 0xdd], 0x2f
test ch, ch
mov eax, 0x2a
mov esi, 0x41
cmovne eax, esi
mov byte [ebp + edx - 0xdd], al
cmp ebx, 0xea
jbe 0x40aa65
push 0x157
push str.C:qp_devqtoolsqspy_sourceqspy_seq.c
call fcn.00409260
add esp, 8
push dword [0x4a3340]
lea eax, [ebp - 0xf0]
push ebx
push 1
push eax
call fcn.0042d32e
add esp, 0x10
inc dword [0x4a3474]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c824
mov esp, ebp
pop ebp
ret