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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x551ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x858]
xor ebp, ebp
cmp eax, ebp
push edi
je 0x5437e9
cmp dword [esi + 0x1c], ebp
je 0x5437e9
mov eax, dword [esi]
call dword [eax + 0x158]
mov edx, dword [esi + 0x1c]
mov edi, eax
and edi, 0xa000
neg edi
lea ecx, [esp + 0x44]
sbb edi, edi
push ecx
neg edi
push edx
mov dword [esp + 0x1c], edi
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [esp + 0x4c]
push esi
lea ecx, [esp + 0xa8]
mov dword [esp + 0x3c], eax
call fcn.005286ba
cmp edi, ebp
mov dword [esp + 0xcc], ebp
je 0x543201
cmp dword [esi + 0x8c], ebp
lea ecx, [esp + 0xa4]
je 0x5431e3
mov edx, dword [esp + 0xa4]
push 0x11
call dword [edx + 0x24]
mov ecx, dword [esp + 0x44]
inc ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], ecx
jmp 0x54321f
mov eax, dword [esp + 0xa4]
push 0x5a7a2c
call dword [eax + 0x28]
mov ecx, dword [esp + 0x44]
inc ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], ecx
jmp 0x54321f
push 0x5a7a5c
lea ecx, [esp + 0xa8]
call fcn.005289fc
mov edx, dword [esp + 0x48]
inc edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
cmp dword [esi + 0x9f0], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
je 0x5432fc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x13c]
test eax, eax
jne 0x5432fc
cmp dword [0x5a7ec4], ebp
jne 0x5432fc
mov ecx, dword [esi + 0x9f0]
add ecx, 0xe8
call fcn.0051e79c
cmp edi, ebp
mov eax, dword [esi + 0x9f0]
mov ecx, dword [eax + 0xd0]
mov dword [esp + 0x1c], ecx
mov dword [eax + 0xd0], ebp
je 0x54329e
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x50]
sub ebp, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2d0]
jmp 0x5432b4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2cc]
mov ecx, dword [esp + 0x44]
mov ebp, eax
mov eax, dword [esp + 0x4c]
sub eax, ecx
mov ecx, dword [esi + 0x9f0]
mov dword [esp + 0x64], eax
push edi
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x74], ebp
mov edx, dword [ecx]
push eax
call dword [edx + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x9f0]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov dword [eax + 0xd0], ecx
xor ebp, ebp
mov eax, dword [esi + 0x850]
cmp eax, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x24], ebp
jne 0x543394
mov eax, dword [esi + 0x9f0]
cmp eax, ebp
je 0x5437ba
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x78], ecx
mov ecx, dword [eax + 0xc4]
test ecx, ecx
jg 0x54334c
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x543779
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x13c]
test eax, eax
jne 0x543779
mov eax, dword [0x5a7ec4]
test eax, eax
jne 0x543779
mov eax, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0x78]
je 0x543735
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
dec ebp
mov edi, ebp
sub edi, ecx
inc edi
jmp 0x54373e
mov eax, dword [esp + 0x20]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x543730
mov edi, dword [eax + 8]
cmp edi, ebp
mov edx, dword [eax]
mov dword [esp + 0x20], edx
je 0x543312
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x28], 1
call dword [eax + 0x2cc]
mov edx, dword [esi]
mov ecx, esi
mov ebp, eax
call dword [edx + 0x2d0]
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0xc4]
mov dword [esp + 0xa8], eax
mov eax, dword [edi]
push edx
mov ecx, edi
mov dword [esp + 0xb0], ebp
call dword [eax + 0x18]
mov ecx, dword [edi + 0x24]
test ecx, ecx
mov ebp, dword [eax]
mov eax, dword [eax + 4]
je 0x54341f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x54341f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2cc]
test byte [edi + 0xc], 1
je 0x543445
cmp ebx, dword [esp + 0x18]
je 0x54343d
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x54343d
mov dword [esp + 0x40], 1
jmp 0x543445
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov dword [esp + 0x64], ebx
je 0x543475
mov ecx, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x54], ebx
add ebx, ebp
add eax, ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x24], eax
jmp 0x54348d
mov ecx, dword [esp + 0x44]
add ebp, ecx
mov dword [esp + 0x58], ebx
add ebx, eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebx
mov eax, dword [esi + 0x9f0]
test eax, eax
je 0x543527
cmp edi, eax
je 0x543527
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x13c]
test eax, eax
jne 0x543527
mov eax, dword [0x5a7ec4]
test eax, eax
jne 0x543527
mov eax, dword [esi + 0x9f0]
mov ebp, dword [eax + 0xc4]
test ebp, ebp
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
jg 0x5434ed
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x5434ed
cmp dword [ebp + 8], eax
jne 0x5434ed
mov ebp, dword [eax + 0xf4]
test ebp, ebp
jne 0x5434ed
xor ecx, ecx
xor edx, edx
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x543503
mov edx, dword [esp + 0x38]
sub edx, ecx
cmp dword [esp + 0x5c], edx
jg 0x54350f
jmp 0x543527
mov ecx, dword [esp + 0x50]
sub ecx, edx
cmp dword [esp + 0x60], ecx
jle 0x543527
mov ebx, dword [esp + 0x64]
push edi
lea ecx, [eax + 0xe8]
mov dword [esp + 0x2c], 0
call fcn.0051ecf7
mov ecx, dword [esp + 0x28]
mov edx, dword [edi + 0x4c]
xor eax, eax
test ecx, ecx
sete al
cmp edx, eax
je 0x543547
mov edx, dword [edi]
push ecx
mov ecx, edi
mov dword [edi + 0x4c], eax
call dword [edx + 0x80]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x80], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x60]
push ecx
lea ebp, [edi + 0x30]
push ebp
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], eax
call dword [sym.imp.user32.dll_EqualRect]
test eax, eax
jne 0x5435af
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [ebp], edx
mov edx, dword [esp + 0x88]
mov dword [ebp + 4], eax
mov eax, dword [edi]
mov dword [ebp + 8], ecx
mov ecx, edi
mov dword [ebp + 0xc], edx
call dword [eax + 0x2c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5435c1
mov eax, dword [edi + 0xc]
and eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x5435d4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x54338e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x54371d
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
sub eax, ebp
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [esi]
mov edi, eax
sar edi, 1
mov ecx, esi
mov dword [esp + 0x64], edi
call dword [edx + 0x13c]
test eax, eax
je 0x5436fb
test edi, edi
jle 0x5436fb
mov eax, dword [esi + 0x810]
test eax, eax
je 0x5436fb
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
xor ecx, ecx
cmp ebp, edi
sete cl
test ebp, ebp
mov eax, ebp
je 0x543730
mov ebx, dword [eax + 8]
mov eax, dword [ebx + 0x1c]
test eax, eax
mov ebp, dword [ebp + 4]
je 0x543651
test ecx, ecx
je 0x5436fb
lea edi, [ebx + 0x30]
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x90], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x64]
push 0
push eax
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0xa4], edx
call dword [sym.imp.user32.dll_OffsetRect]
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x98]
push eax
push edi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
call dword [sym.imp.user32.dll_EqualRect]
test eax, eax
jne 0x5436f3
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [edi], ecx
mov ecx, dword [esp + 0x78]
mov dword [edi + 4], edx
mov edx, dword [ebx]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov ecx, ebx
call dword [edx + 0x2c]
test ebp, ebp
jne 0x543627
mov eax, dword [esi]
mov ebx, dword [esp + 0x18]
mov ecx, esi
mov dword [esp + 0x24], 0
call dword [eax + 0x2cc]
mov ecx, dword [esp + 0x34]
lea edx, [ecx + eax + 5]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x54338e
xor ebp, ebp
jmp 0x543312
jmp fcn.0051c508
mov ecx, dword [esp + 0x30]
dec eax
mov ebx, eax
sub ebx, ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x9f0]
call fcn.004960b0
mov ecx, dword [esi + 0x9f0]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x5437ba
mov edx, dword [ecx]
push 1
mov dword [ecx + 0x4c], 0
call dword [edx + 0x80]
jmp 0x5437ba
sub esp, 0x10
xor eax, eax
mov ebx, esp
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 0x9f0]
xor edx, edx
mov dword [ebx + 8], edx
xor edi, edi
mov dword [ebx + 0xc], edi
call fcn.004960b0
mov ecx, dword [esi + 0x9f0]
mov edx, dword [ecx + 0x4c]
mov eax, 1
cmp edx, eax
je 0x5437ba
mov dword [ecx + 0x4c], eax
mov eax, dword [ecx]
push edi
call dword [eax + 0x80]
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0xa8]
call fcn.005289fc
mov ecx, esi
call fcn.00542f00
lea ecx, [esp + 0xa4]
mov dword [esp + 0xcc], 0xffffffff
call fcn.00528715
mov ecx, dword [esp + 0xc4]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret