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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f6be6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 0x8c]
test ebx, ebx
je 0x554492
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0x14]
lea esi, [edi + 0x14]
add ebx, 2
mov eax, dword [eax]
fld qword [edi + 0xa8]
mov ecx, dword [eax + 8]
mov eax, dword [esi + 8]
sub eax, edx
mov edx, dword [edi + 0xd4]
sub eax, edx
mov dword [esp + 0x2c], ecx
cdq
fsub qword [edi + 0xb0]
idiv ecx
fdiv qword [edi + 0xb8]
cdq
idiv ebx
mov dword [esp + 0x10], eax
call fcn.004ac434
mov ecx, eax
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fmul qword [edi + 0xb8]
fadd qword [edi + 0xb0]
fcomp qword [edi + 0xa8]
fnstsw ax
test ah, 1
je 0x553c02
inc ecx
mov dword [esp + 0xc], ecx
mov eax, dword [edi + 0xd8]
mov ebx, dword [ebp + 8]
cdq
idiv ecx
mov ecx, dword [edi + 0xd4]
mov edx, dword [edi + 0xd8]
mov dword [esp + 0x18], ecx
mov ecx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x18]
push eax
call fcn.004bfe70
mov ecx, dword [esi]
mov dword [esp + 0x58], ecx
mov edx, dword [esi + 4]
mov dword [esp + 0x5c], edx
lea edx, [esp + 0x58]
mov eax, dword [esi + 8]
push edx
mov dword [esp + 0x64], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x68], ecx
mov ecx, ebx
call fcn.004bfec0
mov eax, dword [edi + 0x98]
cmp eax, 1
je 0x554319
cmp eax, 6
je 0x554319
cmp eax, 5
je 0x554319
mov ecx, dword [ebx + 0x20c]
mov eax, dword [edi + 0xd0]
mov esi, dword [ebp + 0xc]
test ecx, ecx
jne 0x553c94
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x553ca0
mov ecx, dword [ebx + 0x23c]
test ecx, ecx
je 0x553ca0
xor eax, eax
push eax
push 1
push 0
lea ecx, [esp + 0xac]
call fcn.005cc269
lea eax, [esp + 0xa0]
mov ecx, esi
push eax
mov dword [esp + 0xdc], 2
call fcn.005cb6cb
mov ecx, dword [edi + 0xc8]
mov dword [esp + 0x20], eax
push ecx
lea ecx, [esp + 0x9c]
call fcn.005cc2b9
lea edx, [esp + 0x98]
mov ecx, esi
push edx
mov byte [esp + 0xdc], 3
call fcn.005cb6cb
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov eax, 0x51eb851f
lea edx, [ecx + ecx*2]
lea edx, [edx + edx*4]
shl edx, 2
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [edi + 0xd8]
sub eax, edx
lea edx, [ecx + ecx*4]
mov dword [esp + 0x24], eax
mov eax, 0x51eb851f
shl edx, 4
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0x14]
sub eax, edx
mov edx, dword [esp + 0x14]
add eax, edx
mov edx, ecx
shl edx, 4
sub edx, ecx
mov dword [esp + 0x30], eax
neg edx
shl edx, 2
mov eax, 0x51eb851f
imul edx
mov eax, dword [esp + 0x14]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [edi + 0xd4]
add eax, ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, ebx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
call fcn.004bfec0
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
inc eax
mov dword [esp + 0x68], eax
push edx
mov edx, dword [esp + 0x70]
push ecx
push edx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.005cb6cb
mov edx, dword [esi]
push 8
mov ecx, esi
call dword [edx + 0x24]
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x7c], ecx
mov ecx, dword [edi + 0xd8]
mov eax, dword [edi + 0xd4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], eax
lea edx, [ecx + ecx*2]
mov eax, 0x51eb851f
lea edx, [edx + edx*4]
shl edx, 2
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x24]
sub eax, edx
lea edx, [ecx + ecx*4]
mov dword [esp + 0x24], eax
mov eax, 0x51eb851f
shl edx, 4
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [edi + 0xd4]
add edx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x30], edx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x8c], edx
mov edx, ecx
shl edx, 4
sub edx, ecx
mov ecx, dword [esp + 0x30]
neg edx
shl edx, 2
imul edx
sar edx, 5
mov eax, edx
mov dword [esp + 0x90], ecx
shr eax, 0x1f
add edx, eax
mov ecx, ebx
mov dword [esp + 0x94], edx
lea edx, [esp + 0x78]
push edx
call fcn.004bfe70
lea eax, [esp + 0x80]
mov ecx, ebx
push eax
call fcn.004bfe70
lea ecx, [esp + 0x88]
push ecx
mov ecx, ebx
call fcn.004bfe70
mov edx, dword [esp + 0x88]
inc edx
mov dword [esp + 0x88], edx
lea edx, [esp + 0x90]
push edx
mov ecx, ebx
call fcn.004bfe70
mov eax, dword [esp + 0x90]
mov ecx, dword [esi + 4]
inc eax
push 4
mov dword [esp + 0x94], eax
lea eax, [esp + 0x7c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_Polygon]
mov edx, dword [esp + 0x50]
mov ecx, esi
push edx
call fcn.005cb6cb
mov eax, dword [edi + 0xcc]
lea ecx, [esp + 0xa8]
push eax
call fcn.005cc2b9
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd8], 4
push ecx
mov ecx, esi
call fcn.005cb6cb
mov edx, dword [edi + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0xd4]
mov ecx, dword [edi + 0xd8]
mov dword [esp + 0xb0], eax
mov eax, dword [edi + 0x1c]
sub eax, edx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xbc], ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, 0x51eb851f
shl edx, 2
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x10]
sub ecx, edx
lea edx, [eax + eax*4]
mov eax, 0x51eb851f
shl edx, 4
imul edx
sar edx, 5
mov eax, edx
mov dword [esp + 0xc4], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [edi + 0x1c]
sub eax, dword [edi + 0x14]
mov dword [esp + 0xcc], ecx
lea ecx, [esp + 0xb0]
add eax, edx
push ecx
mov dword [esp + 0xc4], eax
mov eax, dword [edi + 0xd4]
add eax, edx
mov ecx, ebx
mov dword [esp + 0xcc], eax
call fcn.004bfe70
lea edx, [esp + 0xb8]
mov ecx, ebx
push edx
call fcn.004bfe70
lea eax, [esp + 0xc0]
mov ecx, ebx
push eax
call fcn.004bfe70
lea ecx, [esp + 0xc8]
push ecx
mov ecx, ebx
call fcn.004bfe70
mov eax, dword [esi + 4]
lea edx, [esp + 0xb0]
push 4
push edx
push eax
call dword [sym.imp.GDI32.dll_Polygon]
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, esi
call fcn.005cb6cb
mov edx, dword [esp + 0x20]
mov ecx, esi
push edx
call fcn.005cb6cb
mov eax, dword [edi + 0xdc]
cmp eax, 1
je 0x554046
cmp eax, 3
jne 0x554162
mov ecx, dword [esp + 0xc]
dec ecx
je 0x554162
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
mov edx, eax
imul edx, ecx
neg eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], eax
jmp 0x55406e
mov edx, dword [esp + 0xc]
mov ecx, dword [edi + 0xd8]
mov eax, ecx
sub eax, edx
mov edx, dword [edi + 0xd4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], edx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, 0x51eb851f
shl edx, 2
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x10]
sub ecx, edx
mov edx, dword [esp + 0xc]
sub ecx, edx
lea edx, [eax + eax*4]
shl edx, 4
mov eax, 0x51eb851f
mov dword [esp + 0x44], ecx
imul edx
sar edx, 5
mov eax, edx
mov dword [esp + 0x4c], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [edi + 0xd4]
add eax, edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x14]
sub edx, eax
mov eax, dword [edi + 0x1c]
add edx, eax
push ecx
mov ecx, ebx
mov dword [esp + 0x4c], edx
call fcn.004bfe70
lea edx, [esp + 0x40]
mov ecx, ebx
push edx
call fcn.004bfe70
lea eax, [esp + 0x48]
mov ecx, ebx
push eax
call fcn.004bfe70
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.005cbc4a
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
push edx
mov ecx, esi
call fcn.005cbc96
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
push ecx
mov ecx, esi
call fcn.005cbc96
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
add ecx, edx
dec eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
jne 0x55406a
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.004bfe40
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
sub eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x2c]
cdq
idiv ecx
mov edi, dword [edi + 0xdc]
cmp edi, 2
mov ebx, eax
je 0x55419b
cmp edi, 3
jne 0x55426e
cmp ecx, 1
jle 0x55426e
dec ecx
mov edi, ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
dec ecx
push ecx
lea eax, [edi + edx]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.005cbc4a
mov ecx, dword [esp + 0x10]
lea eax, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
shl ecx, 4
lea edx, [eax + eax*4]
mov eax, 0x51eb851f
shl edx, 2
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x1c]
sub eax, edx
dec eax
push eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, dword [esp + 0x1c]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, esi
add edx, edi
add edx, eax
push edx
call fcn.005cbc96
mov ecx, dword [esp + 0x10]
lea eax, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
shl ecx, 4
lea edx, [eax + eax*4]
mov eax, 0x51eb851f
shl edx, 2
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
or eax, 0xffffffff
sub eax, edx
push eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esp + 0x1c]
add edx, edi
add edx, ecx
mov ecx, esi
push edx
call fcn.005cbc96
mov eax, dword [esp + 0x14]
add edi, ebx
dec eax
mov dword [esp + 0x14], eax
jne 0x5541ab
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.005cbc4a
mov edx, dword [esp + 0x18]
push 0
push edx
mov ecx, esi
call fcn.005cbc96
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.005cbc96
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x5c]
sub eax, edx
mov ecx, esi
push eax
call fcn.005cbc96
mov esi, vtable.CGdiObject.0
mov dword [esp + 0xa8], esi
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd8], 5
call fcn.005cc253
mov dword [esp + 0x98], esi
lea ecx, [esp + 0x98]
mov byte [esp + 0xd8], 6
call fcn.005cc253
mov dword [esp + 0xa0], esi
mov dword [esp + 0xd8], 7
lea ecx, [esp + 0xa0]
jmp 0x55448d
mov ecx, dword [edi + 0xc8]
push ecx
lea ecx, [esp + 0x34]
call fcn.005cc2b9
mov esi, dword [ebp + 0xc]
lea edx, [esp + 0x30]
push edx
mov ecx, esi
mov dword [esp + 0xdc], 0
call fcn.005cb6cb
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0xd8]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x1c]
sub eax, edx
mov edx, dword [edi + 0xd4]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x44], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0
call fcn.004bfec0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x24]
mov ecx, esi
push eax
call fcn.005cb6cb
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
push edx
mov ecx, ebx
call fcn.004bfe40
mov eax, dword [edi + 0xdc]
mov ebx, 1
cmp eax, ebx
je 0x5543cd
cmp eax, 3
jne 0x554409
cmp dword [esp + 0xc], ebx
jle 0x554409
mov eax, ebx
mov ecx, dword [esp + 0x38]
imul eax, dword [esp + 0x20]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
call fcn.005cbc4a
mov eax, ebx
mov ecx, dword [esp + 0x40]
imul eax, dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.005cbc96
mov eax, dword [esp + 0xc]
inc ebx
cmp ebx, eax
jl 0x5543d3
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
sub eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x2c]
cdq
idiv ecx
mov edi, dword [edi + 0xdc]
cmp edi, 2
mov ebx, eax
je 0x554432
cmp edi, 3
jne 0x554476
cmp ecx, 1
jle 0x554476
dec ecx
mov edi, ebx
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x28]
lea eax, [edi + edx]
push eax
push ecx
mov ecx, esi
call fcn.005cbc4a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
dec edx
lea ecx, [edi + eax]
push edx
push ecx
mov ecx, esi
call fcn.005cbc96
mov eax, dword [esp + 0x2c]
add edi, ebx
dec eax
mov dword [esp + 0x2c], eax
jne 0x55443e
mov dword [esp + 0x30], vtable.CGdiObject.0
mov dword [esp + 0xd8], 1
lea ecx, [esp + 0x30]
call fcn.005cc253
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8