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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e84a
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x1009c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 1
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x105], 0
je 0x100351e9
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100351cf
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, esi
push dword [ebp + 8]
call fcn.100362f0
jmp 0x10036296
mov eax, dword [esi + 0x38]
add eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x1ec], eax
mov eax, dword [esi + 0x3c]
add eax, ecx
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d0], 0
test dword [edi + 0x19c], 0xff000000
mov dword [ebp - 0x1e0], ecx
mov dword [ebp - 0x1c8], eax
je 0x10035377
lea eax, [ebp - 0x204]
mov dword [ebp - 0x204], 0
push eax
sub esp, 8
mov dword [ebp - 0x200], 0
cmp dword [edi + 0xf4], 0
mov ecx, esp
mov dword [ebp - 0x1c4], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
jne 0x100352cb
test eax, eax
je 0x10035274
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 byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x1cc], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x1003529e
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push 1
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
xorps xmm0, xmm0
push 1
movups xmmword [ecx], xmm0
push 0x1008ca28
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10003620
jmp 0x1003531a
test eax, eax
je 0x100352d3
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 byte [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x1cc], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x100352fd
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x18]
push dword [eax + 0xf4]
add eax, 0xe4
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x58]
mov edi, dword [esi + 0x18]
mov eax, dword [ebp - 0x204]
mov ecx, dword [ebp - 0x200]
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ecx
cmp dword [edi + 0xf4], 0
jne 0x10035358
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [esi + 0x14], ecx
cmp dword [edi + 0xf4], 0
je 0x1003535e
add ecx, dword [edi + 0x12c]
mov dword [esi + 0x10], ecx
test dword [edi + 0x19c], 0xff000000
je 0x10035377
mov edx, ecx
mov dword [ebp - 0x208], edx
jmp 0x10035381
mov dword [ebp - 0x208], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
sub esp, 8
mov dword [ebp - 0x20c], 0
mov ecx, esp
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x1c4], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100353d3
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 byte [ebp - 4], 6
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x1cc], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x100353fd
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 7
lea eax, [esi + 0x1bf4]
push dword [esi + 0x1c04]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x58]
lea eax, [ebp - 0x218]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x1c4], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003544d
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 byte [ebp - 4], 8
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x1cc], esp
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x10035477
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 9
lea eax, [esi + 0x1c0c]
push dword [esi + 0x1c1c]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x58]
mov eax, dword [esi + 0x18]
test dword [eax + 0x1a0], 0xff000000
je 0x100354f5
test dword [eax + 0x1a4], 0xff000000
je 0x100354f5
mov ecx, dword [eax + 0x134]
mov eax, dword [eax + 0x12c]
mov edi, dword [ebp - 0x218]
mov byte [ebp - 0x1da], 1
lea eax, [eax + ecx*2]
add eax, dword [ebp - 0x214]
add eax, dword [ebp - 0x20c]
cmp dword [ebp - 0x210], edi
mov dword [ebp - 0x1fc], eax
cmovg edi, dword [ebp - 0x210]
jmp 0x10035508
mov byte [ebp - 0x1da], 0
xor edi, edi
mov dword [ebp - 0x1fc], 0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x10035639
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10035639
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10035543
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
test ecx, ecx
je 0x10035563
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [esi + 0x1c]
lea eax, [ebp - 0x204]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.10031ab0
mov ecx, dword [eax]
cmp ecx, edi
mov eax, dword [eax + 4]
cmovg edi, ecx
mov dword [ebp - 0x1d4], ecx
mov dword [ebp - 0x1d0], eax
cmp dword [0x100a16bc], edi
jl 0x100355b2
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x100355b2
mov eax, dword [0x100a16bc]
sub eax, edi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x100355b4
xor edi, edi
mov ecx, dword [ebp - 0x1d4]
mov edx, dword [ebp - 0x1c8]
add ecx, edi
add edx, dword [ebp - 0x1d0]
mov eax, dword [ebp - 0x1ec]
add ecx, eax
push edx
push ecx
push dword [ebp - 0x1c8]
add eax, edi
push eax
lea eax, [esi + 0x78]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, esi
mov eax, dword [eax + 0x124]
lea eax, [eax + edi*2]
mov edi, dword [ebp - 0x1e0]
add eax, dword [ebp - 0x1d4]
add dword [ebp - 0x1ec], eax
mov eax, dword [esi + 0x3c]
add eax, dword [esi + 8]
add eax, dword [ebp - 0x1d0]
add eax, dword [ebp - 0x1fc]
cmp edi, eax
cmovle edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x1e0], edi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x10035639
add edi, dword [0x100a16bc]
mov dword [ebp - 0x1e0], edi
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x1003573e
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10035663
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
test ecx, ecx
je 0x10035683
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [esi + 0x1c]
mov ecx, esi
add eax, 0x24
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call fcn.10031ab0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1d4], ecx
mov dword [ebp - 0x1d0], eax
cmp dword [0x100a16bc], ecx
jl 0x100356d7
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
mov ecx, dword [ebp - 0x1d4]
test al, al
je 0x100356d7
mov eax, dword [0x100a16bc]
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x100356d9
xor edi, edi
mov edx, dword [ebp - 0x1c8]
add ecx, edi
add edx, dword [ebp - 0x1d0]
mov eax, dword [ebp - 0x1ec]
add ecx, eax
push edx
push ecx
push dword [ebp - 0x1c8]
add eax, edi
push eax
lea eax, [esi + 0x88]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x3c]
add ecx, dword [esi + 8]
mov eax, dword [eax + 0x124]
lea eax, [eax + edi*2]
add eax, dword [ebp - 0x1d4]
add dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1d0]
add eax, ecx
mov ecx, dword [ebp - 0x1e0]
cmp ecx, eax
cmovle ecx, eax
mov dword [ebp - 0x1e0], ecx
push 0x190
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.10054380
mov ecx, dword [esi + 0x34]
add esp, 0xc
mov edx, dword [ebp - 0x1ec]
mov edi, edx
mov dword [ebp - 0x1f4], edx
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1bc], ecx
test ecx, ecx
je 0x100360db
xor edx, edx
mov dword [ebp - 0x1e4], edx
test ecx, ecx
jle 0x10035d20
lea eax, [esi + 0x1368]
mov dword [ebp - 0x1bc], ecx
mov dword [ebp - 0x1d8], eax
xor eax, eax
mov dword [ebp - 0x1c8], edx
cmp eax, 0xe10
jge 0x10035d20
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x3c]
add ecx, 0xcc
add eax, dword [ebp - 0x208]
add eax, dword [esi + 8]
mov dword [ebp - 0x1bc], eax
cmp dword [ecx + 0x14], 7
jbe 0x100357df
mov ecx, dword [ecx]
mov eax, dword [esi]
push ecx
push edx
push dword [esi + 0x2c]
lea ecx, [ebp - 0x1b8]
push ecx
mov ecx, esi
call dword [eax + 0x4c]
lea eax, [ebp - 0x1d4]
push eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x1c4], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003581c
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 byte [ebp - 4], 0xb
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x200], esp
mov ecx, dword [ecx + 0x1c]
mov dword [eax], ecx
test ecx, ecx
je 0x10035846
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1b8]
push dword [ebp - 0x1a8]
xorps xmm0, xmm0
sub esp, 0x18
mov edi, esp
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp dword [ebp - 0x1a4], 7
mov eax, dword [ebp - 0x1a8]
cmova ecx, dword [ebp - 0x1b8]
mov dword [ebp - 0x1cc], ecx
mov dword [ebp - 0x1c0], eax
cmp eax, 0x7ffffffe
ja 0x100362e5
mov dword [edi + 0x14], 7
cmp eax, 7
ja 0x100358b1
mov dword [edi + 0x10], eax
movups xmm0, xmmword [ecx]
movups xmmword [edi], xmm0
jmp 0x1003590b
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x100358c2
mov eax, SysReAllocString
jmp 0x100358cd
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0x1f0], eax
lea eax, [ebp - 0x1f0]
push eax
push edi
call fcn.100035b0
mov edx, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x1f0]
mov dword [edi + 0x14], ecx
mov dword [edi], eax
lea ecx, [edx*2 + 2]
mov dword [edi + 0x10], edx
push ecx
push dword [ebp - 0x1cc]
push eax
call fcn.10053de0
add esp, 0x14
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 0xa
call dword [eax + 0x58]
mov eax, dword [esi + 0x40]
imul eax, dword [ebp - 0x1d4]
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ebp - 0x1bc]
add ecx, edx
mov edi, dword [ebp - 0x1d8]
push ecx
add eax, dword [ebp - 0x1f4]
add edi, 0xfffff9c0
push eax
mov dword [ebp - 0x1f0], edi
mov eax, edi
mov edi, dword [ebp - 0x1f4]
add eax, 0xfffff9c0
push edx
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x40]
imul eax, dword [ebp - 0x1d0]
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1cc], 0
add edx, eax
cmp dword [ebp - 0x1e8], edx
mov eax, edx
cmovg eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1d4]
test eax, eax
cmovs eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1c4], eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x12c]
imul eax, dword [esi + 0x40]
add edx, eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x1bc], edx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x1cc], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x1e4]
jbe 0x100362e0
mov edx, dword [ebp - 0x1c8]
lea eax, [ebp - 0x1d4]
add edx, dword [ebp - 0x1cc]
push eax
sub esp, 8
mov dword [ebp - 0x1cc], edx
mov ecx, esp
mov dword [ebp - 0x200], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10035a22
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 byte [ebp - 4], 0xd
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x1e8], esp
mov ecx, dword [ecx + 0x18]
mov dword [eax], ecx
test ecx, ecx
je 0x10035a52
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x1cc]
mov byte [ebp - 4], 0xe
push dword [edx + 0x10]
sub esp, 0x18
mov ecx, esp
push edx
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 0xa
call dword [eax + 0x58]
mov eax, dword [esi + 0x44]
imul eax, dword [ebp - 0x1d4]
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ebp - 0x1bc]
add ecx, edx
push ecx
add eax, edi
push eax
push edx
push edi
push dword [ebp - 0x1f0]
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x44]
imul eax, dword [ebp - 0x1d0]
mov ecx, dword [ebp - 0x1bc]
add ecx, eax
mov eax, dword [ebp - 0x1d4]
cmp dword [ebp - 0x1c0], ecx
mov edx, ecx
mov ecx, dword [esi + 0x18]
cmovg edx, dword [ebp - 0x1c0]
cmp dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1e8], edx
cmovg eax, dword [ebp - 0x1c4]
mov edx, dword [ebp - 0x1e4]
mov dword [ebp - 0x1c0], eax
mov eax, dword [esi + 0x30]
cmp edx, dword [eax]
jne 0x10035c18
test dword [ecx + 0x198], 0xff000000
jne 0x10035c28
mov byte [ebp - 0x1d9], 0
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x1bc], edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x1e4]
jbe 0x100362e0
mov eax, dword [ebp - 0x1bc]
add eax, dword [ebp - 0x1c8]
cmp dword [eax + 0x10], 0
lea edx, [eax + 0x10]
je 0x10035c34
cmp dword [esi + 0x48], 0
je 0x10035c34
cmp byte [ebp - 0x1d9], 0
je 0x10035c34
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 0x1f0], edx
push ecx
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x200], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c4], edi
test edi, edi
je 0x10035ba0
lock inc dword [edi + 4]
add eax, 0x10
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [ebp - 0x1c4], esp
mov ecx, dword [ecx + 0x20]
mov dword [eax], ecx
test ecx, ecx
je 0x10035bd0
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edx, dword [ebp - 0x1f0]
mov eax, dword [ebp - 0x1c8]
add eax, dword [ebp - 0x1bc]
mov byte [ebp - 4], 0x10
push dword [edx]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004140
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 0xa
call dword [eax + 0x58]
mov edx, dword [ebp - 0x1d0]
mov ecx, dword [ebp - 0x1d4]
imul edx, dword [esi + 0x48]
imul ecx, dword [esi + 0x48]
mov edi, dword [ebp - 0x1f4]
push edx
add ecx, edi
push ecx
jmp 0x10035c37
test dword [ecx + 0x168], 0xff000000
je 0x10035afd
mov byte [ebp - 0x1d9], 1
jmp 0x10035b04
push 0
push edi
push 0
push edi
push dword [ebp - 0x1d8]
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x1d8]
mov ecx, dword [ebp - 0x1d4]
cmp dword [ebp - 0x1c0], ecx
mov edi, dword [ebp - 0x1d8]
cmovg ecx, dword [ebp - 0x1c0]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x1e4]
sub eax, dword [edi + 4]
mov edi, dword [ebp - 0x1f8]
cmp edi, eax
cmovle edi, eax
mov dword [ebp + edx*4 - 0x1a0], ecx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1f8], edi
mov edi, dword [ebp - 0x1f4]
mov eax, dword [eax + 0x128]
add eax, ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a4]
add edi, eax
mov dword [ebp - 0x1f4], edi
cmp ecx, 7
jbe 0x10035cec
mov edx, dword [ebp - 0x1b8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10035cdc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100362db
push ecx
push edx
call fcn.1004dfa8
mov edx, dword [ebp - 0x1e4]
add esp, 8
mov eax, dword [ebp - 0x1c8]
inc edx
mov ecx, dword [esi + 0x34]
add eax, 0x24
add dword [ebp - 0x1d8], 0x10
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1bc], ecx
cmp edx, ecx
jl 0x100357b1
mov dword [ebp - 0x1bc], ecx
mov eax, dword [esi + 0x18]
sub edi, dword [eax + 0x128]
cmp dword [ebp - 0x1ec], edi
cmovg edi, dword [ebp - 0x1ec]
add edi, dword [esi + 0x38]
mov dword [ebp - 0x1d8], edi
test ecx, ecx
je 0x100360e9
xor eax, eax
mov dword [ebp - 0x1c0], eax
test ecx, ecx
jle 0x10035f1b
lea edi, [esi + 0xd30]
mov dword [ebp - 0x1e4], edi
nop dword [eax]
nop word [eax + eax]
mov dword [ebp - 0x1bc], ecx
cmp eax, 0x64
jge 0x10035f1b
mov edx, dword [esi + 0x18]
xor ecx, ecx
mov dword [ebp - 0x1c8], ecx
mov dword [ebp - 0x1bc], ecx
cmp dword [edx + 0x100], 1
jne 0x10035dec
mov ecx, dword [ebp + eax*4 - 0x1a0]
mov eax, dword [edi - 0x648]
sub eax, dword [edi - 0x640]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c4], eax
mov eax, dword [edi - 8]
sub eax, dword [edi]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c8], eax
mov eax, dword [edi + 0x638]
sub eax, dword [edi + 0x640]
add eax, ecx
mov ecx, dword [ebp - 0x1c4]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1bc], eax
jmp 0x10035e45
cmp dword [edx + 0x100], ecx
jne 0x10035dfe
cmp byte [edx + 0x104], cl
je 0x10035e45
jmp 0x10035e0f
cmp dword [edx + 0x100], 2
jne 0x10035e45
cmp byte [edx + 0x104], cl
jne 0x10035e45
mov edx, dword [edi - 8]
sub edx, dword [edi]
mov eax, dword [ebp + eax*4 - 0x1a0]
add edx, eax
mov ecx, dword [edi - 0x648]
sub ecx, dword [edi - 0x640]
mov dword [ebp - 0x1c8], edx
add ecx, eax
mov edx, dword [edi + 0x638]
sub edx, dword [edi + 0x640]
add edx, eax
mov dword [ebp - 0x1bc], edx
push 0
lea eax, [edi - 0x648]
push ecx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push dword [ebp - 0x1c8]
add edi, 0xfffffff8
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x1e4]
add ecx, 0x638
mov eax, dword [eax + 0x12c]
add eax, dword [ebp - 0x1e8]
push eax
push dword [ebp - 0x1bc]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x1e4]
mov ecx, dword [eax - 0x648]
cmp ecx, dword [edi]
cmovge ecx, dword [edi]
mov edi, eax
mov eax, dword [edi + 0x638]
cmp ecx, eax
cmovl eax, ecx
mov ecx, dword [edi - 0x640]
cmp ecx, dword [edi]
mov dword [edi - 0xc88], eax
cmovle ecx, dword [edi]
mov eax, dword [edi + 0x640]
cmp ecx, eax
cmovg eax, ecx
mov dword [edi - 0xc80], eax
mov eax, dword [edi - 0x644]
sub eax, dword [ebp - 0x208]
mov dword [edi - 0xc84], eax
mov eax, dword [edi + 0x63c]
add eax, dword [ebp - 0x1f8]
mov dword [edi - 0xc7c], eax
add edi, 0x10
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [esi + 0x34]
inc eax
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1e4], edi
mov dword [ebp - 0x1bc], ecx
cmp eax, ecx
jl 0x10035d70
mov edx, dword [esi + 0xac]
mov eax, dword [esi + 8]
mov edi, dword [ebp - 0x1e0]
sub eax, edx
add eax, dword [esi + 0x3c]
add eax, dword [esi + 0xb4]
cmp edi, eax
cmovle edi, eax
sub edx, dword [esi + 0x3c]
mov eax, edi
mov dword [ebp - 0x1e0], edi
add edx, eax
mov dword [ebp - 0x1e0], eax
cmp edx, dword [esi + 0xb4]
jle 0x10035f83
xor ecx, ecx
cmp dword [ebp - 0x1bc], ecx
jle 0x10035f83
lea edx, [esi + 0xb4]
cmp ecx, 0x64
jge 0x10035f83
mov eax, dword [esi + 0xac]
inc ecx
sub eax, dword [esi + 0x3c]
sub eax, dword [esi + 8]
add eax, edi
mov dword [edx], eax
add edx, 0x10
cmp ecx, dword [esi + 0x34]
jl 0x10035f65
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x104], 0
jne 0x100360f8
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
mov ecx, dword [esi + 0x1c]
test al, al
jne 0x10035fae
cmp dword [ecx + 0x10], 0
je 0x10035fae
mov eax, dword [esi + 0x78]
jmp 0x10035fc2
cmp dword [ecx + 0x34], 0
je 0x10035fbc
mov eax, dword [esi + 0x88]
jmp 0x10035fc2
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0x34]
sub ecx, 1
mov dword [ebp - 0x1f8], eax
mov dword [ebp - 0x1c0], ecx
js 0x1003607d
mov edi, ecx
shl edi, 4
mov dword [ebp - 0x1e8], edi
mov eax, dword [esi + 0x34]
lea edx, [esi + 0xa8]
dec eax
add edx, edi
cmp ecx, eax
jne 0x10035ffd
mov edi, dword [ebp - 0x1f8]
jmp 0x1003600d
mov eax, dword [esi + 0x18]
mov edi, dword [esi + edi + 0xc0]
add edi, dword [eax + 0x128]
sub edi, dword [edx]
push 0
push edi
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x1e8]
push 0
add eax, 0x6e8
push edi
add eax, esi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x1e8]
push 0
add eax, 0xd28
push edi
add eax, esi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push edi
mov edi, dword [ebp - 0x1e8]
lea eax, [edi + 0x1368]
add eax, esi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x1c0]
sub edi, 0x10
dec ecx
mov dword [ebp - 0x1e8], edi
mov dword [ebp - 0x1c0], ecx
test ecx, ecx
jns 0x10035fe5
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
test al, al
jne 0x100360b3
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x100360b3
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x78]
push 0
mov eax, dword [eax + 0x124]
add eax, dword [esi + 0xb0]
sub eax, dword [ecx]
push eax
push ecx
call edi
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x34], 0
je 0x100360f8
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x88]
push 0
mov eax, dword [eax + 0x124]
add eax, dword [esi + 0xb0]
sub eax, dword [ecx]
push eax
push ecx
call edi
jmp 0x100360f8
cmp edx, edi
cmovg edi, edx
add edi, dword [esi + 0x38]
mov dword [ebp - 0x1d8], edi
mov eax, dword [esi + 0x18]
sub edi, dword [eax + 0x124]
mov dword [ebp - 0x1d8], edi
mov eax, dword [ebp - 0x1e0]
mov ecx, esi
add eax, dword [esi + 0x3c]
mov dword [ebp - 0x1c0], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
add eax, eax
movups xmm0, xmmword [esi + eax*8 + 0xa8]
lea eax, [ebp - 0x1c0]
push eax
lea eax, [ebp - 0x1d8]
push eax
movups xmmword [esi + 0x98], xmm0
call fcn.100327d0
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
add ecx, dword [ebp - 0x1c0]
add eax, dword [ebp - 0x1d8]
cmp byte [ebp - 0x1da], 0
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ecx
je 0x10036236
cmp dword [esi + 0x34], 0
je 0x10036236
mov edi, dword [esi + 0x18]
cmp byte [edi + 0x58], 0
jne 0x10036236
mov edi, dword [edi + 0x134]
sub edi, dword [esi + 0x3c]
mov eax, dword [esi + 0x80]
add eax, dword [esi + 0x78]
sub edi, dword [esi + 8]
cdq
add edi, ecx
sub edi, dword [ebp - 0x1fc]
sub eax, edx
mov ecx, dword [ebp - 0x210]
sar eax, 1
mov dword [ebp - 0x1fc], eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x1fc]
sar eax, 1
sub edx, eax
mov eax, dword [ebp - 0x20c]
add eax, edi
mov dword [ebp - 0x1fc], edx
push eax
lea eax, [edx + ecx]
push eax
push edi
push edx
lea edi, [esi + 0x1bd4]
push edi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x18]
mov edx, dword [ebp - 0x1fc]
mov ecx, dword [eax + 0x12c]
add ecx, dword [esi + 0x1be0]
mov eax, dword [ebp - 0x214]
add eax, ecx
push eax
mov eax, dword [ebp - 0x218]
add eax, edx
push eax
push ecx
push edx
lea eax, [esi + 0x1be4]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
test al, al
je 0x10036236
mov eax, dword [0x100a16bc]
neg eax
push eax
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
call edi
mov eax, dword [0x100a16bc]
neg eax
push eax
push 0
lea eax, [esi + 0x1be4]
push eax
call edi
push dword [esi + 0x74]
lea eax, [esi + 0x19c8]
push dword [esi + 0x70]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esi + 0x19c8]
push eax
lea edi, [esi + 0x19b8]
push edi
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 8]
not eax
push eax
mov eax, dword [esi + 4]
not eax
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_InflateRect]
call edi
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.10032350
mov eax, dword [esi + 8]
neg eax
push eax
mov eax, dword [esi + 4]
neg eax
push eax
lea eax, [esi + 0x19c8]
push eax
call edi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100362be
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100362be
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100362be
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.1004df9a
mov esp, ebp
pop ebp
ret 0xc
call fcn.1005dcef
call fcn.10005a20
call fcn.100036c0
int3