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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008881a
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100a9100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1cc], edi
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x18]
cmp byte [esi + 0x105], 0
je 0x1003cd80
mov eax, dword [ebp + 8]
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1003cd68
lock inc dword [edx + 4]
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
mov edx, dword [ebp + 0x10]
mov dword [ecx + 4], edx
mov ecx, edi
push eax
call fcn.1003df50
jmp 0x1003deda
mov eax, dword [edi + 0x38]
add eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x1d8], eax
mov eax, dword [edi + 0x3c]
add eax, ecx
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d0], 0
test dword [esi + 0x19c], 0xff000000
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x1bc], eax
je 0x1003cf6f
xor ecx, ecx
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x204], ecx
cmp dword [edi + 0x34], ecx
je 0x1003ced1
mov eax, dword [edi]
mov esi, dword [esi + 0xf4]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x200], eax
lea eax, [ebp - 0x208]
push eax
sub esp, 8
mov dword [ebp - 0x1c8], esp
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test esi, esi
jne 0x1003ce75
test eax, eax
je 0x1003ce1e
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x1fc], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1003ce48
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push 1
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
xorps xmm0, xmm0
push 1
movups xmmword [ecx], xmm0
push 0x10096f60
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10003770
jmp 0x1003cebf
test eax, eax
je 0x1003ce7d
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x1fc], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
mov byte [ebp - 4], 6
test ecx, ecx
je 0x1003cea7
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push esi
sub esp, 0x18
mov byte [ebp - 4], 7
mov eax, dword [edi + 0x18]
mov ecx, esp
add eax, 0xe4
push eax
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 1
call dword [ebp - 0x200]
mov ecx, dword [ebp - 0x204]
mov esi, dword [edi + 0x18]
mov eax, dword [ebp - 0x208]
mov dword [edi + 0xc], eax
mov dword [edi + 0x14], ecx
cmp dword [esi + 0xf4], 0
jne 0x1003cf50
mov eax, 0x92492493
imul dword [ebp - 0x208]
add edx, dword [ebp - 0x208]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x14], eax
mov edx, eax
mov ecx, dword [esi + 0x1b0]
test ecx, ecx
je 0x1003cf3a
cmp dword [esi + 0x1ac], 0
je 0x1003cf3a
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
divss xmm0, dword [0x10096fa4]
cvtdq2ps xmm1, xmm1
divss xmm1, xmm0
cvttss2si edx, xmm1
mov ecx, 6
cmp edx, ecx
cmovg ecx, edx
mov dword [edi + 0x14], ecx
cmp dword [esi + 0xf4], 0
je 0x1003cf56
add ecx, dword [esi + 0x12c]
mov dword [edi + 0x10], ecx
test dword [esi + 0x19c], 0xff000000
je 0x1003cf6f
mov esi, ecx
mov dword [ebp - 0x20c], esi
jmp 0x1003cf79
mov dword [ebp - 0x20c], 0
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x218], 0
call eax
test al, al
jne 0x1003d0c2
mov eax, dword [edi]
mov esi, dword [eax + 0x58]
mov eax, dword [edi + 0x1c04]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x214]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x1c8], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003cfed
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x1fc], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
mov byte [ebp - 4], 9
test ecx, ecx
je 0x1003d017
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x1c4]
lea eax, [edi + 0x1bf4]
mov byte [ebp - 4], 0xa
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 1
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x58]
mov eax, dword [edi + 0x1c1c]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x21c]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x1c8], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003d075
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x1fc], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x1003d09f
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x1c4]
lea eax, [edi + 0x1c0c]
mov byte [ebp - 4], 0xd
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 1
call esi
mov eax, dword [edi + 0x18]
test dword [eax + 0x1a0], 0xff000000
je 0x1003d120
test dword [eax + 0x1a4], 0xff000000
je 0x1003d120
mov ecx, dword [eax + 0x134]
mov eax, dword [eax + 0x12c]
mov esi, dword [ebp - 0x21c]
mov byte [ebp - 0x1e2], 1
lea eax, [eax + ecx*2]
add eax, dword [ebp - 0x218]
add eax, dword [ebp - 0x210]
cmp dword [ebp - 0x214], esi
mov dword [ebp - 0x200], eax
cmovg esi, dword [ebp - 0x214]
mov dword [ebp - 0x1ec], esi
jmp 0x1003d13b
mov byte [ebp - 0x1e2], 0
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x1ec], 0
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x1003d29c
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x1c4], eax
cmp dword [eax + 0x10], 0
je 0x1003d29c
mov esi, dword [ebp + 8]
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003d17f
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x1003d1a3
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x1c4]
lea eax, [ebp - 0x208]
mov byte [ebp - 4], 1
push esi
push eax
mov ecx, edi
call fcn.10039540
mov esi, dword [ebp - 0x1ec]
mov ecx, dword [eax]
cmp ecx, esi
mov eax, dword [eax + 4]
cmovg esi, ecx
mov dword [ebp - 0x1d4], ecx
mov dword [ebp - 0x1d0], eax
cmp dword [0x100af260], esi
jl 0x1003d1fd
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003d1fd
mov eax, dword [0x100af260]
sub eax, esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
jmp 0x1003d1ff
xor ecx, ecx
mov edx, dword [ebp - 0x1bc]
lea esi, [edi + 0x78]
add edx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1c0], ecx
add ecx, dword [ebp - 0x1d4]
add ecx, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x1c0]
add eax, dword [ebp - 0x1d8]
push edx
push ecx
push dword [ebp - 0x1bc]
push eax
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp - 0x1cc]
mov ecx, dword [ebp - 0x1c0]
mov esi, dword [ebp - 0x1e8]
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x124]
lea eax, [eax + ecx*2]
mov ecx, edi
add eax, dword [ebp - 0x1d4]
add dword [ebp - 0x1d8], eax
mov eax, dword [edi + 0x3c]
add eax, dword [edi + 8]
add eax, dword [ebp - 0x1d0]
add eax, dword [ebp - 0x200]
cmp esi, eax
cmovle esi, eax
mov eax, dword [edi]
mov dword [ebp - 0x1e8], esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003d29c
add esi, dword [0x100af260]
mov dword [ebp - 0x1e8], esi
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x1003d3d0
mov esi, dword [ebp + 8]
sub esp, 8
mov ecx, esp
add eax, 0x24
mov dword [ebp - 0x1c4], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003d2d2
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x1003d2f6
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x1c4]
lea eax, [ebp - 0x208]
mov byte [ebp - 4], 1
push esi
push eax
mov ecx, edi
call fcn.10039540
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1d4], ecx
mov dword [ebp - 0x1d0], eax
cmp dword [0x100af260], ecx
jl 0x1003d34f
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [ebp - 0x1d4]
test al, al
je 0x1003d34f
mov eax, dword [0x100af260]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c0], eax
jmp 0x1003d357
xor edx, edx
mov dword [ebp - 0x1c0], edx
mov edx, dword [ebp - 0x1bc]
lea esi, [edi + 0x88]
mov eax, dword [ebp - 0x1c0]
add ecx, eax
add edx, dword [ebp - 0x1d0]
add ecx, dword [ebp - 0x1d8]
add eax, dword [ebp - 0x1d8]
push edx
push ecx
push dword [ebp - 0x1bc]
push eax
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp - 0x1cc]
mov edx, dword [ebp - 0x1c0]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x3c]
add ecx, dword [edi + 8]
mov eax, dword [eax + 0x124]
lea eax, [eax + edx*2]
add eax, dword [ebp - 0x1d4]
add dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1d0]
add eax, ecx
mov ecx, dword [ebp - 0x1e8]
cmp ecx, eax
cmovle ecx, eax
mov dword [ebp - 0x1e8], ecx
push 0x190
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.1005d560
mov ecx, dword [edi + 0x34]
add esp, 0xc
mov edx, dword [ebp - 0x1d8]
mov esi, edx
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], ecx
test ecx, ecx
je 0x1003df1f
xor edx, edx
mov dword [ebp - 0x1e0], edx
test ecx, ecx
jle 0x1003d928
lea eax, [edi + 0x1368]
mov dword [ebp - 0x1bc], ecx
mov dword [ebp - 0x1dc], eax
xor eax, eax
mov dword [ebp - 0x1f0], edx
nop dword [eax]
cmp eax, 0xe10
jge 0x1003d928
mov eax, dword [edi + 0x3c]
add eax, dword [ebp - 0x20c]
add eax, dword [edi + 8]
mov dword [ebp - 0x1bc], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x1c4], eax
mov eax, dword [edi + 0x18]
add eax, 0xcc
cmp dword [eax + 0x14], 7
jbe 0x1003d478
mov eax, dword [eax]
push eax
push edx
push dword [edi + 0x2c]
lea eax, [ebp - 0x1b8]
mov ecx, edi
push eax
call dword [ebp - 0x1c4]
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x1d4]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x1c8], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003d4cd
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x1fc], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x1003d4f7
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x1c4]
lea eax, [ebp - 0x1b8]
mov byte [ebp - 4], 0x13
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 0x10
call dword [ebp - 0x1f4]
mov eax, dword [edi + 0x40]
imul eax, dword [ebp - 0x1d4]
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ebp - 0x1bc]
add ecx, edx
mov edi, dword [ebp - 0x1dc]
push ecx
add eax, esi
add edi, 0xfffff9c0
push eax
push edx
push esi
lea eax, [edi - 0x640]
mov dword [ebp - 0x1f8], edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1d0]
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1f4], 0
imul eax, dword [edi + 0x40]
add edx, eax
cmp dword [ebp - 0x1c0], edx
mov eax, edx
cmovg eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1d4]
test eax, eax
cmovs eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1c8], eax
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x12c]
imul eax, dword [edi + 0x40]
add edx, eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x1bc], edx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x1f4], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x1e0]
jbe 0x1003df46
mov eax, dword [edi]
mov ecx, dword [ebp - 0x1f4]
add ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1c4], ecx
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x1d4]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x220], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003d639
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x204], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x1003d663
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [ebp - 0x1f4]
mov byte [ebp - 4], 0x16
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x1c4]
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 0x10
call dword [ebp - 0x1c0]
mov eax, dword [edi + 0x44]
imul eax, dword [ebp - 0x1d4]
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ebp - 0x1bc]
add ecx, edx
push ecx
add eax, esi
push eax
push edx
push esi
push dword [ebp - 0x1f8]
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi + 0x44]
imul eax, dword [ebp - 0x1d0]
mov ecx, dword [ebp - 0x1bc]
add ecx, eax
mov eax, dword [ebp - 0x1d4]
cmp dword [ebp - 0x1fc], ecx
mov edx, ecx
mov ecx, dword [ebp - 0x1e0]
cmovg edx, dword [ebp - 0x1fc]
cmp dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1c0], edx
cmovg eax, dword [ebp - 0x1c8]
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x1bc], eax
mov eax, dword [edi + 0x30]
cmp ecx, dword [eax]
jne 0x1003d824
test dword [edx + 0x198], 0xff000000
jne 0x1003d834
mov byte [ebp - 0x1e1], 0
mov eax, dword [edi + 0x28]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x1c8], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x1e0]
jbe 0x1003df46
mov eax, dword [ebp - 0x1c8]
add eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x1fc], eax
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c8], eax
test eax, eax
je 0x1003d840
cmp dword [edi + 0x48], 0
je 0x1003d840
cmp byte [ebp - 0x1e1], 0
je 0x1003d840
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x1f8], eax
lea eax, [ebp - 0x1d4]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x204], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003d7ba
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x220], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
mov byte [ebp - 4], 0x18
test ecx, ecx
je 0x1003d7e4
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0x19
push dword [ebp - 0x1c8]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x1fc]
call fcn.10004470
mov ecx, edi
mov byte [ebp - 4], 0x10
call dword [ebp - 0x1f8]
mov edx, dword [ebp - 0x1d0]
mov ecx, dword [ebp - 0x1d4]
imul edx, dword [edi + 0x48]
imul ecx, dword [edi + 0x48]
push edx
add ecx, esi
push ecx
jmp 0x1003d843
test dword [edx + 0x168], 0xff000000
je 0x1003d717
mov byte [ebp - 0x1e1], 1
jmp 0x1003d71e
push 0
push esi
push 0
push esi
push dword [ebp - 0x1dc]
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [ebp - 0x1d4]
cmp dword [ebp - 0x1bc], ecx
mov eax, dword [ebp - 0x1dc]
cmovg ecx, dword [ebp - 0x1bc]
mov edi, dword [ebp - 0x1dc]
mov edx, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
sub eax, dword [edi + 4]
cmp dword [ebp - 0x1ec], eax
mov edi, dword [ebp - 0x1cc]
cmovg eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1ec], eax
mov dword [ebp + edx*4 - 0x1a0], ecx
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x128]
add eax, ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a4]
add esi, eax
cmp ecx, 7
jbe 0x1003d8f4
mov edx, dword [ebp - 0x1b8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d8e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003df41
push ecx
push edx
call fcn.1005736b
mov edx, dword [ebp - 0x1e0]
add esp, 8
mov eax, dword [ebp - 0x1f0]
inc edx
mov ecx, dword [edi + 0x34]
add eax, 0x24
add dword [ebp - 0x1dc], 0x10
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x1f0], eax
mov dword [ebp - 0x1bc], ecx
cmp edx, ecx
jl 0x1003d440
mov dword [ebp - 0x1bc], ecx
mov eax, dword [edi + 0x18]
sub esi, dword [eax + 0x128]
cmp dword [ebp - 0x1d8], esi
cmovg esi, dword [ebp - 0x1d8]
add esi, dword [edi + 0x38]
mov dword [ebp - 0x1d8], esi
mov dword [ebp - 0x1e0], esi
test ecx, ecx
je 0x1003df2d
xor eax, eax
mov dword [ebp - 0x1c4], eax
test ecx, ecx
jle 0x1003db0f
lea esi, [edi + 0xd30]
mov dword [ebp - 0x1dc], esi
mov dword [ebp - 0x1bc], ecx
cmp eax, 0x64
jge 0x1003db0f
mov edx, dword [edi + 0x18]
xor ecx, ecx
mov dword [ebp - 0x1f0], ecx
mov edi, dword [edx + 0x100]
cmp edi, 1
jne 0x1003d9e5
mov ecx, dword [ebp + eax*4 - 0x1a0]
mov eax, dword [esi - 0x648]
sub eax, dword [esi - 0x640]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c8], eax
mov eax, dword [esi - 8]
sub eax, dword [esi]
add eax, ecx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x638]
sub eax, dword [esi + 0x640]
add eax, ecx
sar edi, 1
mov ecx, dword [ebp - 0x1c8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1f0], eax
jmp 0x1003da32
test edi, edi
jne 0x1003da23
cmp byte [edx + 0x104], cl
je 0x1003da30
mov ecx, dword [esi - 0x648]
mov edi, dword [esi - 8]
mov eax, dword [ebp + eax*4 - 0x1a0]
sub ecx, dword [esi - 0x640]
sub edi, dword [esi]
add ecx, eax
mov edx, dword [esi + 0x638]
add edi, eax
sub edx, dword [esi + 0x640]
add edx, eax
mov dword [ebp - 0x1f0], edx
jmp 0x1003da32
cmp edi, 2
jne 0x1003da30
cmp byte [edx + 0x104], cl
je 0x1003d9f1
mov edi, ecx
push 0
lea eax, [esi - 0x648]
push ecx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push edi
add esi, 0xfffffff8
push esi
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x1cc]
mov edi, dword [ebp - 0x1dc]
add edi, 0x638
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x1c0]
push eax
push dword [ebp - 0x1f0]
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x1dc]
mov ecx, dword [eax - 0x648]
cmp ecx, dword [esi]
mov eax, dword [edi]
cmovge ecx, dword [esi]
mov esi, dword [ebp - 0x1dc]
cmp ecx, eax
mov edi, dword [ebp - 0x1cc]
cmovl eax, ecx
mov ecx, dword [esi - 0x640]
cmp ecx, dword [esi]
mov dword [esi - 0xc88], eax
cmovle ecx, dword [esi]
mov eax, dword [esi + 0x640]
cmp ecx, eax
cmovg eax, ecx
mov dword [esi - 0xc80], eax
mov eax, dword [esi - 0x644]
sub eax, dword [ebp - 0x20c]
mov dword [esi - 0xc84], eax
mov eax, dword [esi + 0x63c]
add eax, dword [ebp - 0x1ec]
mov dword [esi - 0xc7c], eax
add esi, 0x10
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [edi + 0x34]
inc eax
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1dc], esi
mov dword [ebp - 0x1bc], ecx
cmp eax, ecx
jl 0x1003d971
mov esi, dword [edi + 0xac]
mov eax, dword [edi + 8]
mov edx, dword [edi + 0x3c]
sub eax, esi
mov ecx, dword [edi + 0xb4]
add eax, edx
mov edi, dword [ebp - 0x1e8]
add eax, ecx
cmp edi, eax
cmovle edi, eax
sub esi, edx
mov eax, edi
mov dword [ebp - 0x1e8], edi
mov edi, dword [ebp - 0x1cc]
add esi, eax
mov dword [ebp - 0x1e8], eax
cmp esi, ecx
jle 0x1003db7e
xor ecx, ecx
cmp dword [ebp - 0x1bc], ecx
jle 0x1003db7e
lea edx, [edi + 0xb4]
mov esi, eax
cmp ecx, 0x64
jge 0x1003db7e
mov eax, dword [edi + 0xac]
inc ecx
sub eax, dword [edi + 0x3c]
sub eax, dword [edi + 8]
add eax, esi
mov dword [edx], eax
add edx, 0x10
cmp ecx, dword [edi + 0x34]
jl 0x1003db60
mov eax, dword [edi + 0x18]
cmp byte [eax + 0x104], 0
jne 0x1003dcd4
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [edi + 0x1c]
test al, al
jne 0x1003dba9
cmp dword [ecx + 0x10], 0
je 0x1003dba9
mov eax, dword [edi + 0x78]
jmp 0x1003dbbd
cmp dword [ecx + 0x34], 0
je 0x1003dbb7
mov eax, dword [edi + 0x88]
jmp 0x1003dbbd
mov eax, dword [edi + 0xa8]
mov ecx, dword [edi + 0x34]
sub ecx, 1
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 0x1c4], ecx
js 0x1003dc78
mov esi, ecx
shl esi, 4
mov dword [ebp - 0x1c0], esi
mov eax, dword [edi + 0x34]
lea edx, [edi + 0xa8]
dec eax
add edx, esi
cmp ecx, eax
jne 0x1003dbf8
mov esi, dword [ebp - 0x1ec]
jmp 0x1003dc08
mov eax, dword [edi + 0x18]
mov esi, dword [edi + esi + 0xc0]
add esi, dword [eax + 0x128]
sub esi, dword [edx]
push 0
push esi
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x1c0]
push 0
add eax, 0x6e8
push esi
add eax, edi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x1c0]
push 0
add eax, 0xd28
push esi
add eax, edi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push esi
mov esi, dword [ebp - 0x1c0]
lea eax, [esi + 0x1368]
add eax, edi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x1c4]
sub esi, 0x10
dec ecx
mov dword [ebp - 0x1c0], esi
mov dword [ebp - 0x1c4], ecx
test ecx, ecx
jns 0x1003dbe0
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x50]
call eax
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
test al, al
jne 0x1003dcae
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x1003dcae
mov eax, dword [edi + 0x18]
lea ecx, [edi + 0x78]
push 0
mov eax, dword [eax + 0x124]
add eax, dword [edi + 0xb0]
sub eax, dword [ecx]
push eax
push ecx
call esi
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x1003dcd4
mov eax, dword [edi + 0x18]
lea ecx, [edi + 0x88]
push 0
mov eax, dword [eax + 0x124]
add eax, dword [edi + 0xb0]
sub eax, dword [ecx]
push eax
push ecx
call esi
mov esi, dword [ebp - 0x1d8]
mov edx, dword [edi + 0x3c]
add edx, dword [ebp - 0x1e8]
cmp dword [edi + 0x34], 0
mov dword [ebp - 0x1c0], edx
je 0x1003dd14
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx + 0x108]
cmp esi, eax
cmovle esi, eax
mov eax, dword [ecx + 0x110]
cmp edx, eax
mov dword [ebp - 0x1e0], esi
cmovle edx, eax
mov dword [ebp - 0x1c0], edx
lea eax, [ebp - 0x1c0]
mov ecx, edi
push eax
lea eax, [ebp - 0x1e0]
push eax
call fcn.1003a0e0
xor edx, edx
cmp dword [edi + 0x34], edx
jle 0x1003dd56
lea esi, [edi + 0xb4]
cmp edx, 0x64
jge 0x1003dd56
mov ecx, dword [ebp - 0x1c0]
sub ecx, dword [edi + 0x3c]
mov eax, dword [esi]
cmp eax, ecx
cmovle eax, ecx
inc edx
mov dword [esi], eax
add esi, 0x10
cmp edx, dword [edi + 0x34]
jl 0x1003dd36
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 8]
add ecx, dword [ebp - 0x1c0]
mov eax, dword [eax]
add eax, eax
movups xmm0, xmmword [edi + eax*8 + 0xa8]
mov eax, dword [edi + 4]
add eax, dword [ebp - 0x1e0]
cmp byte [ebp - 0x1e2], 0
movups xmmword [edi + 0x98], xmm0
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], ecx
je 0x1003de70
cmp dword [edi + 0x34], 0
je 0x1003de70
mov esi, dword [edi + 0x18]
cmp byte [esi + 0x58], 0
jne 0x1003de70
mov esi, dword [esi + 0x134]
sub esi, dword [edi + 0x3c]
mov eax, dword [edi + 0x80]
add eax, dword [edi + 0x78]
sub esi, dword [edi + 8]
cdq
add esi, ecx
mov ecx, dword [ebp - 0x214]
sub eax, edx
sub esi, dword [ebp - 0x200]
mov edi, eax
mov eax, ecx
sar edi, 1
cdq
sub eax, edx
mov edx, dword [ebp - 0x1cc]
sar eax, 1
add edx, 0x1bd4
sub edi, eax
mov eax, dword [ebp - 0x210]
add eax, esi
push eax
lea eax, [edi + ecx]
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_SetRect]
push edi
push edx
call esi
mov edx, dword [ebp - 0x1cc]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x12c]
add ecx, dword [edx + 0x1be0]
add edx, 0x1be4
mov eax, dword [ebp - 0x218]
add eax, ecx
push eax
mov eax, dword [ebp - 0x21c]
add eax, edi
push eax
push ecx
push edi
push edx
call esi
mov edi, dword [ebp - 0x1cc]
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x1003de70
mov eax, dword [0x100af260]
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
neg eax
push eax
push 0
lea eax, [edi + 0x1bd4]
push eax
call esi
mov eax, dword [0x100af260]
neg eax
push eax
push 0
lea eax, [edi + 0x1be4]
push eax
call esi
mov esi, dword [ebp - 0x1cc]
add edi, 0x19c8
push dword [esi + 0x74]
push dword [esi + 0x70]
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetRect]
push edi
add esi, 0x19b8
push esi
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [ebp - 0x1cc]
mov eax, dword [ecx + 8]
not eax
push eax
mov eax, dword [ecx + 4]
not eax
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_InflateRect]
call esi
mov ecx, dword [ebp - 0x1cc]
lea eax, [ebp + 8]
push eax
call fcn.10039c50
mov ecx, dword [ebp - 0x1cc]
mov eax, dword [ecx + 8]
neg eax
push eax
mov eax, dword [ecx + 4]
neg eax
push eax
push edi
call esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1003df02
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003df02
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1003df02
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005735d
mov esp, ebp
pop ebp
ret 0xc
cmp edx, esi
cmovg esi, edx
add esi, dword [edi + 0x38]
mov dword [ebp - 0x1e0], esi
mov eax, dword [edi + 0x18]
sub esi, dword [eax + 0x124]
mov dword [ebp - 0x1e0], esi
jmp 0x1003dcda
call fcn.10066ebf
call fcn.10005f90
int3