Function at 0x401992
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x40d080
push 0xffffffffffffffff
push 0x4803bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov eax, dword [sym.imp.QtCore4.dll_struct_QVectorData_QVectorData::shared_null]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], edi
mov byte [esp + 0x13], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], eax
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0x6c]
push edx
mov ecx, edi
mov dword [esp + 0x98], ebx
call fcn.004019ec
test al, al
jne 0x40d106
mov eax, dword [esp + 0xc]
or esi, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x94], esi
je 0x40d0ff
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x40d0ff
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov eax, esi
jmp 0x40da05
push ebp
lea ecx, [edi + 0x8c]
mov dword [esp + 0x34], ebx
xor ebp, ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x16], 0
call fcn.00401c49
mov dword [esp + 0x3c], eax
cmp byte [esp + 0x16], 0
je 0x40d147
push 0x1770
lea eax, [ebp + 0xf0]
push eax
mov ecx, edi
call fcn.00401834
test al, al
je 0x40d4a9
lea ebx, [edi + 0x8c]
mov ecx, ebx
call fcn.00401195
mov esi, eax
test esi, esi
mov dword [esp + 0x30], esi
je 0x40d4d3
cmp dword [esi], 0
je 0x40d4d3
cmp dword [esi + 4], 0x2000000
jne 0x40d17f
cmp dword [esi + 8], 8
jle 0x40d17f
mov byte [esp + 0x17], 1
mov eax, dword [esi + 8]
cmp eax, 0xa
jge 0x40d18e
mov eax, 0xa
jmp 0x40d1a3
xor ecx, ecx
cmp eax, 0x401
setge cl
sub ecx, 1
and ecx, 0xfffffffd
add ecx, 0xf
mov eax, ecx
add dword [esp + 0x24], eax
mov ecx, dword [esp + ebp*4 + 0x7c]
mov edi, dword [esp + 0x18]
lea eax, [ebp + ebp*4]
add eax, eax
add eax, eax
lea ebx, [esp + eax + 0x48]
mov dword [ebx], 0
mov edx, dword [esi + 4]
push 0x83
and edx, 0xffffff
mov dword [esp + eax + 0x54], ecx
mov dword [esp + eax + 0x50], edx
mov dword [esp + eax + 0x58], 0x10000
mov dword [esp + eax + 0x5c], 0
mov eax, dword [esp + ebp*4 + 0x78]
push 0x14
push eax
add edi, 0xc
push ebx
mov ecx, edi
call fcn.00401e1f
mov eax, dword [esp + ebp*4 + 0x74]
push 0x83
push 4
push eax
push ebx
mov ecx, edi
mov dword [ebx], 2
call fcn.00401e1f
mov eax, dword [esp + 0x38]
add eax, 1
cmp eax, 2
mov dword [esp + 0x38], eax
jne 0x40d228
mov byte [esp + 0x16], 1
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
and eax, 0xffffff
xor ebp, 1
test ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], eax
jbe 0x40d413
jmp 0x40d254
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x88]
add esi, 0xc
cmp eax, ecx
jb 0x40d2dc
mov eax, dword [esi]
mov edx, dword [eax]
cmp edx, 1
mov dword [esp + 0x44], ecx
je 0x40d284
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
push edx
mov ecx, esi
call fcn.004010a0
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
lea ecx, [eax + ecx*4 + 0x10]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
lea edx, [edx + edx*2]
sub esi, edx
mov ebx, dword [esp + esi*4 + 0x7c]
mov esi, dword [esp + 0x88]
push 0x83
lea eax, [esi*4]
push eax
push ebx
push ecx
mov ecx, edi
mov dword [esp + 0x2c], eax
call fcn.00401e1f
test eax, eax
setne al
test al, al
je 0x40d97f
add dword [esp + 0x2c], esi
sub dword [esp + 0x28], esi
jmp 0x40d351
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, 1
je 0x40d2fa
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
push edx
mov ecx, esi
call fcn.004010a0
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
lea ecx, [eax + ecx*4 + 0x10]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
lea edx, [edx + edx*2]
sub esi, edx
mov ebx, dword [esp + esi*4 + 0x7c]
mov esi, dword [esp + 0x28]
push 0x83
lea eax, [esi*4]
push eax
push ebx
push ecx
mov ecx, edi
mov dword [esp + 0x2c], eax
call fcn.00401e1f
test eax, eax
setne al
test al, al
je 0x40d9ac
add dword [esp + 0x2c], esi
mov dword [esp + 0x28], 0
cmp byte [esp + 0x16], 0
je 0x40d375
mov ecx, dword [esp + 0x18]
push 0x1770
lea eax, [ebp + 0xf0]
push eax
call fcn.00401834
test al, al
je 0x40d9d9
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
lea eax, [ebp + ebp*4]
add eax, eax
add eax, eax
push 0x83
mov dword [esp + eax + 0x50], ecx
mov dword [esp + eax + 0x54], ebx
mov ebx, dword [esp + ebp*4 + 0x78]
push 0x14
lea ecx, [edx*4]
lea esi, [esp + eax + 0x50]
push ebx
mov dword [esp + eax + 0x60], ecx
push esi
mov ecx, edi
mov dword [esi], 0
mov dword [esp + eax + 0x68], 0
call fcn.00401e1f
push 0x83
push 4
push ebx
push esi
mov ecx, edi
mov dword [esi], 1
call fcn.00401e1f
mov eax, dword [esp + 0x38]
add eax, 1
cmp eax, 2
mov byte [esp + 0x16], 1
mov dword [esp + 0x38], eax
jne 0x40d3ee
mov byte [esp + 0x16], 1
mov edx, dword [esp + 0x1c]
add dword [esp + 0x20], edx
add dword [esp + 0x34], 1
push 1
xor ebp, 1
call fcn.00401334
add esp, 4
cmp dword [esp + 0x28], 0
ja 0x40d250
mov eax, dword [esp + 0x24]
fild dword [esp + 0x24]
test eax, eax
jge 0x40d425
fadd dword [0x4967fc]
mov ecx, dword [esp + 0x3c]
fmul qword [0x4967f0]
test ecx, ecx
fild dword [esp + 0x3c]
jge 0x40d43d
fadd dword [0x4967fc]
fdivp st(1)
mov esi, dword [esp + 0x18]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fst dword [esi + 0xb4]
fld dword [0x4967ec]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x40d46a
fstp st(1)
fstp dword [esi + 0xb4]
jmp 0x40d483
fstp st(0)
fld1
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x40d481
fstp dword [esi + 0xb4]
jmp 0x40d483
fstp st(0)
fld dword [esi + 0xb4]
call fcn.00476510
push eax
mov ecx, esi
call fcn.004012bc
push 2
call fcn.00401334
add esp, 4
xor ebx, ebx
mov edi, esi
jmp 0x40d125
mov eax, dword [esp + 0x10]
or esi, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x98], esi
je 0x40d9ff
lock xadd dword [eax], esi
jne 0x40d9ff
mov edx, dword [esp + 0x10]
push edx
jmp 0x40d9f6
mov ecx, ebx
call fcn.00401e42
lea ecx, [esp + 0x10]
call fcn.004011a9
mov ecx, ebx
call fcn.00401195
test eax, eax
je 0x40d6b1
cmp dword [eax], 0
je 0x40d6b1
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
and ecx, 0xffffff
xor ebx, ebx
test edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], ecx
jle 0x40d696
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x10
jmp 0x40d530
mov eax, dword [esp + 0x1c]
sub eax, ebx
cmp eax, 0x2000
mov edi, 0x2000
jg 0x40d544
mov edi, eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov edx, dword [ecx]
cmp edx, 1
lea esi, [eax + ebx*4]
mov eax, dword [esp + 0x10]
jne 0x40d565
mov ecx, dword [eax + 8]
add ecx, 1
cmp ecx, dword [eax + 4]
jle 0x40d591
mov edx, dword [eax + 8]
push 0
push 4
add edx, 1
push edx
push 0x14
call dword [sym.imp.QtCore4.dll_public:_static_int___cdecl_QVectorData::grow_int__int__int__bool_]
add esp, 0x10
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
push ecx
lea ecx, [esp + 0x18]
call fcn.004010a0
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov dword [eax + edx*4 + 0x10], esi
mov eax, dword [esp + 0x10]
add dword [eax + 8], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
cmp ecx, 1
mov eax, dword [esp + 0x10]
lea esi, [edi*4]
jne 0x40d5c1
mov edx, dword [eax + 8]
add edx, 1
cmp edx, dword [eax + 4]
jle 0x40d5ed
mov eax, dword [eax + 8]
push 0
push 4
add eax, 1
push eax
push 0x14
call dword [sym.imp.QtCore4.dll_public:_static_int___cdecl_QVectorData::grow_int__int__int__bool_]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 8]
add esp, 0x10
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004010a0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 0x10], esi
mov eax, dword [esp + 0x10]
add dword [eax + 8], 1
mov eax, dword [edx]
mov eax, dword [eax]
cmp eax, 1
je 0x40d61a
mov ecx, edx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
call fcn.004010a0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
add eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov esi, dword [eax]
mov eax, dword [edx]
cmp eax, 1
mov eax, dword [esp + 0x10]
jne 0x40d640
mov ecx, dword [eax + 8]
add ecx, 1
cmp ecx, dword [eax + 4]
jle 0x40d66c
mov edx, dword [eax + 8]
push 0
push 4
add edx, 1
push edx
push 0x14
call dword [sym.imp.QtCore4.dll_public:_static_int___cdecl_QVectorData::grow_int__int__int__bool_]
add esp, 0x10
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
push ecx
lea ecx, [esp + 0x18]
call fcn.004010a0
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
add dword [esp + 0x20], 4
mov dword [eax + edx*4 + 0x10], esi
mov eax, dword [esp + 0x10]
add dword [eax + 8], 1
push 1
add ebx, edi
call fcn.00401334
add esp, 4
cmp ebx, dword [esp + 0x1c]
jl 0x40d530
mov ecx, dword [esp + 0x18]
add ecx, 0x8c
call fcn.00401195
test eax, eax
mov edi, dword [esp + 0x18]
jne 0x40d4f2
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 8]
lea eax, [ecx + 8]
mov ecx, dword [ecx]
cmp ecx, 1
je 0x40d6d6
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.004010a0
mov ecx, dword [esp + 0x10]
xor edx, edx
add ecx, 0x10
cmp ebx, edx
jbe 0x40d854
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
lea eax, [edx + edx*2]
push 0x83
sub esi, eax
mov eax, dword [esp + esi*4 + 0x80]
lea edx, [ebx*4]
push edx
push eax
add edi, 0xc
push ecx
mov ecx, edi
mov dword [esp + 0x2c], eax
call fcn.00401e1f
test eax, eax
setne al
test al, al
jne 0x40d762
mov eax, dword [esp + 0x10]
or esi, 0xffffffff
test eax, eax
mov dword [esp + 0x98], esi
je 0x40d9d2
lock xadd dword [eax], esi
jne 0x40d9d2
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov eax, 0xfffffffd
jmp 0x40da04
mov edx, dword [esp + 0x1c]
lea ecx, [ebp + ebp*4]
add ecx, ecx
add ecx, ecx
xor eax, eax
lea esi, [esp + ecx + 0x48]
mov dword [esp + ecx + 0x4c], eax
mov dword [esp + ecx + 0x58], eax
mov dword [esi], eax
mov dword [esp + ecx + 0x50], edx
mov eax, 0xaaaaaaab
mul ebx
mov ebx, dword [esp + ebp*4 + 0x74]
push 0x83
push 0x14
shr edx, 1
push ebx
mov dword [esp + ecx + 0x60], edx
push esi
mov ecx, edi
call fcn.00401e1f
push 0x83
push 4
push ebx
push esi
mov ecx, edi
mov dword [esi], 5
call fcn.00401e1f
mov ecx, dword [esp + 0x18]
xor ebp, 1
push 0x1770
lea eax, [ebp + 0xf0]
push eax
call fcn.00401834
test al, al
jne 0x40d7ee
lea ecx, [esp + 0x10]
mov dword [esp + 0x98], 0xffffffff
call fcn.00401b1d
jmp 0x40d9ff
mov esi, dword [esp + 0x18]
xor ebp, 1
push 0x1770
lea ecx, [ebp + 0xf0]
push ecx
mov ecx, esi
call fcn.00401834
test al, al
jne 0x40d843
mov edx, dword [esp + 0x1c]
push 0x1770
push edx
lea eax, [esp + 0x94]
push eax
mov ecx, esi
call fcn.0040133e
lea ecx, [esp + 0x10]
mov dword [esp + 0x98], 0xffffffff
call fcn.00401b1d
mov eax, 0xfffffffc
jmp 0x40da04
push 1
xor ebp, 1
call fcn.00401334
add esp, 4
mov edi, esi
xor edx, edx
lea eax, [ebp + ebp*4]
add eax, eax
add eax, eax
lea ecx, [esp + eax + 0x48]
push 0x83
mov dword [esp + eax + 0x50], edx
mov dword [esp + eax + 0x54], edx
mov dword [esp + eax + 0x5c], edx
mov dword [esp + eax + 0x58], edx
mov eax, dword [esp + ebp*4 + 0x78]
push 0x14
push eax
mov dword [ecx], 4
push ecx
lea ecx, [edi + 0xc]
call fcn.00401e1f
push 0x1770
add ebp, 0xf0
push ebp
mov ecx, edi
call fcn.00401834
test al, al
jne 0x40d8d2
mov eax, dword [esp + 0x10]
or esi, 0xffffffff
test eax, eax
mov dword [esp + 0x98], esi
je 0x40d8c8
lock xadd dword [eax], esi
jne 0x40d8c8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov eax, 0xfffffffb
jmp 0x40da04
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
or esi, 0xffffffff
cmp byte [esp + 0x17], 0
je 0x40d933
push 0xbb8
push 0x82000000
lea edx, [esp + 0x48]
push edx
mov ecx, edi
mov dword [esp + 0x4c], esi
call fcn.0040133e
xor ecx, ecx
cmp dword [esp + 0x40], 0xd9ef0045
setne cl
xor edx, edx
test al, al
sete dl
or ecx, edx
je 0x40d933
lea ecx, [esp + 0x10]
mov dword [esp + 0x98], esi
call fcn.00401b1d
mov eax, 0xfffffff9
jmp 0x40da04
push 2
call fcn.00401334
fld dword [0x4967e8]
add esp, 4
fstp dword [edi + 0xb4]
push 0x64
mov ecx, edi
call fcn.004012bc
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x98], esi
je 0x40d975
lock xadd dword [eax], esi
jne 0x40d975
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov eax, 1
jmp 0x40da04
mov eax, dword [esp + 0x10]
or esi, 0xffffffff
test eax, eax
mov dword [esp + 0x98], esi
je 0x40d9d2
lock xadd dword [eax], esi
jne 0x40d9d2
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov eax, 0xfffffffd
jmp 0x40da04
mov eax, dword [esp + 0x10]
or esi, 0xffffffff
test eax, eax
mov dword [esp + 0x98], esi
je 0x40d9d2
lock xadd dword [eax], esi
jne 0x40d9d2
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov eax, 0xfffffffd
jmp 0x40da04
mov eax, dword [esp + 0x10]
or esi, 0xffffffff
test eax, eax
mov dword [esp + 0x98], esi
je 0x40d9ff
lock xadd dword [eax], esi
jne 0x40d9ff
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov eax, 0xfffffffe
pop ebp
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 4