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

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
mov esi, dword [esp + 0x88]
push edi
mov ebx, esi
call fcn.00552be0
cmp dword [esi + 0x4c], 0
je 0x55378b
mov ebx, dword [esp + 0x90]
test ebx, ebx
je 0x55378b
mov eax, dword [esi + 0x48]
test eax, eax
je 0x55378b
mov ecx, dword [eax + 0x98]
test ecx, ecx
je 0x55378b
mov eax, dword [eax + 0x9c]
sub eax, ecx
sar eax, 2
je 0x55378b
mov eax, dword [esi + 0x44]
test eax, eax
je 0x55378b
lea edi, [eax + 0x48]
call fcn.0052c9d0
test eax, eax
je 0x55378b
mov edi, dword [esi + 0x44]
mov ebp, dword [esi + 0x48]
mov eax, dword [esp + 0x94]
xor ecx, ecx
add edi, 0x20
add ebp, 0x94
test eax, eax
setle cl
mov dword [esp + 0x10], edi
sub ecx, 1
and ecx, eax
mov dword [esi + 0x58], ecx
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
cmp dword [esi + 0x14], eax
jg 0x55378b
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov ecx, dword [esi + 0x18]
add ecx, dword [esi + 0x58]
cmp ecx, eax
jg 0x55378b
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], ebx
call fcn.00548180
test eax, eax
jle 0x553688
lea esp, [esp]
mov edi, ebx
mov esi, ebp
call fcn.0041dda0
mov edx, dword [eax]
cmp dword [edx + 0x38], 0
je 0x55367d
mov esi, dword [esp + 0x10]
lea edi, [esi + 0x50]
call fcn.0052c9d0
lea edi, [esi + 0x28]
mov dword [esp + 0x14], eax
call fcn.0052c9d0
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x18], eax
call fcn.0041dda0
mov eax, dword [eax]
test eax, eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
je 0x553085
cmp dword [eax], 1
jne 0x553085
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x8c]
mov esi, dword [eax + 0x4c]
call fcn.00529db0
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x14], eax
call fcn.0041dda0
mov eax, dword [eax]
test eax, eax
je 0x553667
mov ecx, dword [esp + 0x14]
push eax
call fcn.005426b0
test eax, eax
je 0x553667
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + 0x48]
cmp ebx, dword [edx + 0xa4]
jne 0x5530e8
call fcn.0041dda0
mov eax, dword [eax]
cmp dword [eax], 5
je 0x5530e8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x14], edx
jmp 0x5530f3
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x8c]
mov eax, dword [edx + 0x48]
cmp dword [eax + 0xa8], 0
je 0x553199
mov edi, ebx
mov esi, ebp
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x24]
sub ecx, dword [eax + 0x1c]
add eax, 0x18
mov dword [esp + 0x24], ecx
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x18]
add eax, 0x18
mov dword [esp + 0x28], ecx
call fcn.0041dda0
mov dword [esp + 0x20], eax
call fcn.0041dda0
mov dword [esp + 0x2c], eax
call fcn.0041dda0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov ecx, dword [edx + 0x14]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [edx]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [esp + 0x98]
add edx, dword [ecx + 0x58]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [ecx + 0xd8]
mov ecx, dword [esp + 0x28]
call fcn.00542680
mov edi, ebx
mov esi, ebp
call fcn.0041dda0
mov edx, dword [eax]
cmp dword [edx], 0
je 0x553398
call fcn.0041dda0
mov eax, dword [eax]
cmp dword [eax], 4
je 0x553398
call fcn.0041dda0
mov ecx, dword [eax]
cmp dword [ecx], 5
je 0x553398
call fcn.0041dda0
mov edx, dword [eax]
cmp dword [edx], 6
je 0x553398
call fcn.0041dda0
mov eax, dword [eax]
mov eax, dword [eax]
call fcn.0053f500
test eax, eax
je 0x5532d9
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
add eax, 0x28
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0x58]
push ecx
mov dword [esp + 0x48], edx
push 0
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
call fcn.0041dda0
mov eax, dword [eax]
cmp dword [eax], 1
mov eax, dword [esp + 0x10]
jne 0x553246
add eax, 0x50
jmp 0x553249
add eax, 0x28
mov ecx, dword [esp + 0x8c]
mov esi, dword [ecx + 0x4c]
mov dword [esp + 0x18], eax
call fcn.005299f0
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x2c], eax
call fcn.0041dda0
mov dword [esp + 0x28], eax
call fcn.0041dda0
mov dword [esp + 0x24], eax
call fcn.0041dda0
mov dword [esp + 0x20], eax
call fcn.0041dda0
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
lea edx, [esp + 0x2c]
push edx
lea edx, [ecx + 0xd8]
push edx
lea edx, [ecx + 0x44]
push edx
mov edx, dword [esp + 0x34]
add ecx, 0x40
push ecx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [edx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx]
add ecx, 8
push ecx
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0xb0]
push ecx
mov ecx, dword [eax + 4]
add edx, 0xc
call fcn.00542140
jmp 0x553534
call fcn.0041dda0
mov edx, dword [eax]
cmp dword [edx], 3
jne 0x553534
mov edi, ebx
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
add eax, 0x28
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0x58]
push ecx
mov dword [esp + 0x48], edx
push 0
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x90]
push ecx
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x94]
mov ecx, eax
call fcn.00542510
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
add eax, 0x3c
mov dword [eax], ecx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x44]
mov dword [eax + 0xc], edx
call fcn.0041dda0
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + 0x58]
mov eax, dword [eax]
neg edx
push edx
push 0
add eax, 0x3c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x553534
mov edi, ebx
mov esi, ebp
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x34]
sub ecx, dword [eax + 0x2c]
add eax, 0x28
mov dword [esp + 0x20], ecx
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x30]
sub ecx, dword [eax + 0x28]
add eax, 0x28
mov dword [esp + 0x30], ecx
call fcn.0041dda0
mov dword [esp + 0x2c], eax
call fcn.0041dda0
mov dword [esp + 0x28], eax
call fcn.0041dda0
mov dword [esp + 0x24], eax
call fcn.0041dda0
mov dword [esp + 0x34], eax
call fcn.0041dda0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xd8]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x94]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 8]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx]
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x2c]
add ecx, dword [edi + 0x58]
push ecx
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0xac]
push ecx
mov ecx, dword [edx + 0xc]
mov edx, dword [esi + 4]
push eax
call fcn.00541d80
mov edi, ebx
mov esi, ebp
call fcn.0041dda0
mov ecx, dword [eax]
cmp dword [ecx], 6
jne 0x553534
mov edx, dword [esp + 0x8c]
mov ecx, dword [edx + 0xb0]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x34], ecx
je 0x553534
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call fcn.0041dda0
mov eax, dword [eax]
mov edx, dword [eax + 0x3c]
add eax, 0x3c
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x50], edx
mov eax, dword [eax + 0xc]
mov edx, dword [ecx + 0x58]
push edx
mov dword [esp + 0x58], eax
push 0
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [esp + 0x90]
lea eax, [esp + 0x48]
mov edx, esi
call fcn.00531730
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
push 0
push 0
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x54]
sub edx, eax
push edx
mov edx, dword [esp + 0x60]
push ecx
push esi
mov esi, dword [esp + 0x4c]
sub edx, ecx
mov bl, 1
call fcn.005304e0
mov eax, dword [esp + 0x8c]
mov ebx, dword [esp + 0x1c]
mov dword [eax + 0xd0], 1
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0x48]
cmp dword [ecx + 0x34], 2
jne 0x553667
mov edx, dword [eax + 0x4c]
mov eax, dword [edx + 0x50]
mov eax, dword [eax + 0x3c]
test eax, eax
mov dword [esp + 0x34], eax
je 0x553667
mov edi, ebx
mov esi, ebp
call fcn.0041dda0
mov ecx, dword [eax]
cmp dword [ecx + 0x10], 0
je 0x553667
call fcn.0041dda0
mov eax, dword [eax]
mov edx, dword [eax + 0x44]
add eax, 0x3c
sub edx, dword [eax]
je 0x553667
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
add eax, 0x3c
sub ecx, dword [eax + 4]
je 0x553667
call fcn.0041dda0
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov edi, dword [esp + 0x34]
call fcn.0054a7e0
mov esi, eax
test esi, esi
mov dword [esp + 0x34], esi
je 0x553667
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov dword [esp + 0x80], eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x84], eax
call fcn.0041dda0
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
add eax, 0x3c
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0x58]
push ecx
mov dword [esp + 0x68], edx
push 0
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x58]
call fcn.00531730
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
push 1
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x64]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x64]
sub esi, ecx
push esi
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
xor cl, cl
xor edx, edx
call fcn.005304a0
add ebx, 1
mov eax, ebp
mov dword [esp + 0x1c], ebx
call fcn.00548180
cmp ebx, eax
jl 0x553030
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x10]
xor eax, eax
cmp dword [esi + 0x94], eax
je 0x553705
mov edx, dword [esi + 0x48]
mov ecx, dword [edx + 0x20]
mov ebp, dword [esi + ecx*4 + 0x74]
cmp ebp, eax
je 0x553705
mov edx, dword [ebp + 0xc]
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x84], eax
lea edi, [esi + 0x64]
mov dword [esp + 0x80], edx
mov eax, edi
mov edx, ebx
call fcn.00531730
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
mov eax, dword [esi + 0x68]
add eax, dword [esi + 0x58]
push 0
push 0
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [edi + 8]
sub edx, dword [edi]
push ecx
push ebx
mov bl, 1
mov esi, ebp
call fcn.005304e0
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x10]
mov esi, dword [esi + 0x4c]
add edi, 0x50
test esi, esi
mov dword [esp + 0x34], edi
je 0x55378b
call fcn.00529db0
cmp eax, 1
jne 0x55378b
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp + 0x48]
add eax, 0x4c
call fcn.005524c0
test eax, eax
jne 0x55378b
call fcn.0052c9d0
test eax, eax
je 0x55378b
mov edi, dword [ebp + 0x48]
cmp dword [edi + 4], 0
je 0x55378b
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc8]
mov eax, dword [ecx + 0x44]
mov esi, dword [edi + 0x5c]
mov ebx, dword [edi + 0x58]
sub esi, dword [edi + 0x54]
sub ebx, dword [edi + 0x50]
push edx
push eax
call fcn.0053fdc0
mov edx, dword [edi + 0x54]
add edx, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x48]
mov ecx, dword [ecx + 0x4c]
push esi
push ebx
push edx
mov edx, dword [edi + 0x50]
push edx
mov edx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0x50]
mov ebx, eax
call fcn.00542040
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x78
ret 0xc