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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f6c26
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 0x5544d2
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.004ac474
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 0x553c42
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.004bfeb0
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.004bff00
mov eax, dword [edi + 0x98]
cmp eax, 1
je 0x554359
cmp eax, 6
je 0x554359
cmp eax, 5
je 0x554359
mov ecx, dword [ebx + 0x20c]
mov eax, dword [edi + 0xd0]
mov esi, dword [ebp + 0xc]
test ecx, ecx
jne 0x553cd4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x553ce0
mov ecx, dword [ebx + 0x23c]
test ecx, ecx
je 0x553ce0
xor eax, eax
push eax
push 1
push 0
lea ecx, [esp + 0xac]
call fcn.005cc2a9
lea eax, [esp + 0xa0]
mov ecx, esi
push eax
mov dword [esp + 0xdc], 2
call fcn.005cb70b
mov ecx, dword [edi + 0xc8]
mov dword [esp + 0x20], eax
push ecx
lea ecx, [esp + 0x9c]
call fcn.005cc2f9
lea edx, [esp + 0x98]
mov ecx, esi
push edx
mov byte [esp + 0xdc], 3
call fcn.005cb70b
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.004bff00
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.005cb70b
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.004bfeb0
lea eax, [esp + 0x80]
mov ecx, ebx
push eax
call fcn.004bfeb0
lea ecx, [esp + 0x88]
push ecx
mov ecx, ebx
call fcn.004bfeb0
mov edx, dword [esp + 0x88]
inc edx
mov dword [esp + 0x88], edx
lea edx, [esp + 0x90]
push edx
mov ecx, ebx
call fcn.004bfeb0
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.005cb70b
mov eax, dword [edi + 0xcc]
lea ecx, [esp + 0xa8]
push eax
call fcn.005cc2f9
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd8], 4
push ecx
mov ecx, esi
call fcn.005cb70b
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.004bfeb0
lea edx, [esp + 0xb8]
mov ecx, ebx
push edx
call fcn.004bfeb0
lea eax, [esp + 0xc0]
mov ecx, ebx
push eax
call fcn.004bfeb0
lea ecx, [esp + 0xc8]
push ecx
mov ecx, ebx
call fcn.004bfeb0
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.005cb70b
mov edx, dword [esp + 0x20]
mov ecx, esi
push edx
call fcn.005cb70b
mov eax, dword [edi + 0xdc]
cmp eax, 1
je 0x554086
cmp eax, 3
jne 0x5541a2
mov ecx, dword [esp + 0xc]
dec ecx
je 0x5541a2
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 0x5540ae
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.004bfeb0
lea edx, [esp + 0x40]
mov ecx, ebx
push edx
call fcn.004bfeb0
lea eax, [esp + 0x48]
mov ecx, ebx
push eax
call fcn.004bfeb0
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.005cbc8a
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
push edx
mov ecx, esi
call fcn.005cbcd6
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
push ecx
mov ecx, esi
call fcn.005cbcd6
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 0x5540aa
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.004bfe80
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 0x5541db
cmp edi, 3
jne 0x5542ae
cmp ecx, 1
jle 0x5542ae
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.005cbc8a
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.005cbcd6
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.005cbcd6
mov eax, dword [esp + 0x14]
add edi, ebx
dec eax
mov dword [esp + 0x14], eax
jne 0x5541eb
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.005cbc8a
mov edx, dword [esp + 0x18]
push 0
push edx
mov ecx, esi
call fcn.005cbcd6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.005cbcd6
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.005cbcd6
mov esi, vtable.CGdiObject.0
mov dword [esp + 0xa8], esi
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd8], 5
call fcn.005cc293
mov dword [esp + 0x98], esi
lea ecx, [esp + 0x98]
mov byte [esp + 0xd8], 6
call fcn.005cc293
mov dword [esp + 0xa0], esi
mov dword [esp + 0xd8], 7
lea ecx, [esp + 0xa0]
jmp 0x5544cd
mov ecx, dword [edi + 0xc8]
push ecx
lea ecx, [esp + 0x34]
call fcn.005cc2f9
mov esi, dword [ebp + 0xc]
lea edx, [esp + 0x30]
push edx
mov ecx, esi
mov dword [esp + 0xdc], 0
call fcn.005cb70b
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.004bff00
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.005cb70b
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
push edx
mov ecx, ebx
call fcn.004bfe80
mov eax, dword [edi + 0xdc]
mov ebx, 1
cmp eax, ebx
je 0x55440d
cmp eax, 3
jne 0x554449
cmp dword [esp + 0xc], ebx
jle 0x554449
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.005cbc8a
mov eax, ebx
mov ecx, dword [esp + 0x40]
imul eax, dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.005cbcd6
mov eax, dword [esp + 0xc]
inc ebx
cmp ebx, eax
jl 0x554413
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 0x554472
cmp edi, 3
jne 0x5544b6
cmp ecx, 1
jle 0x5544b6
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.005cbc8a
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.005cbcd6
mov eax, dword [esp + 0x2c]
add edi, ebx
dec eax
mov dword [esp + 0x2c], eax
jne 0x55447e
mov dword [esp + 0x30], vtable.CGdiObject.0
mov dword [esp + 0xd8], 1
lea ecx, [esp + 0x30]
call fcn.005cc293
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8