Function at 0x5316c0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x5905a0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5cca0c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5cca0c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, dword [esp + 0x94]
mov eax, dword [esi]
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], esi
call fcn.00443260
mov ecx, eax
call fcn.0048add0
mov edi, dword [esi + 0x110]
mov ebp, dword [esi + 0x88]
mov ebx, dword [esi]
mov byte [esp + 0x1f], al
call fcn.00444df0
mov esi, eax
mov al, byte [esi + 0x50]
test al, al
je 0x53174e
push edi
push ebp
push ebx
mov ecx, esi
call fcn.00439240
push eax
mov ecx, esi
call fcn.0043bd90
test al, al
mov byte [esp + 0x17], 1
jne 0x531753
mov byte [esp + 0x17], 0
test byte [0x5ceb14], 1
jne 0x53177f
or dword [0x5ceb14], 1
xor ebx, ebx
mov dword [0x5ceb04], ebx
mov dword [0x5ceb08], ebx
mov dword [0x5ceb0c], ebx
mov dword [0x5ceb10], ebx
jmp 0x531781
xor ebx, ebx
push 0x5ceb04
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
mov ebp, dword [esp + 0x20]
je 0x5317c6
mov esi, dword [ebp + 4]
call fcn.004a1350
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x5317cc
push str.uiview_get_window_rect_by_index
push eax
call edi
cmp eax, ebx
je 0x5317cc
mov ecx, dword [esp + 0x90]
push 0x5ceb04
push 2
push ecx
push esi
call eax
jmp 0x5317cc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov bl, byte [esp + 0x1f]
test bl, bl
je 0x5317fe
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x5317fe
push str.uiview_set_tip_text_by_index
push eax
call edi
test eax, eax
je 0x5317fe
mov edx, dword [esp + 0x90]
push 0x5975dc
push 2
push edx
push esi
call eax
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x53182d
push str.uiview_show_window_part_by_index
push eax
call edi
test eax, eax
je 0x53182d
mov edx, dword [esp + 0x90]
mov cl, bl
neg cl
sbb ecx, ecx
and ecx, 5
push ecx
push 2
push edx
push esi
call eax
mov ecx, dword [esp + 0x18]
xor eax, eax
test bl, bl
setne al
cmp dword [ecx + 4], 0
mov ebx, eax
je 0x531953
mov eax, dword [0x5ceb08]
mov edx, dword [0x5ceb04]
mov ecx, dword [0x5ceb0c]
mov esi, dword [ebp + 4]
mov dword [esp + 0x38], eax
mov eax, dword [0x5ceb10]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
sub ecx, edx
lea eax, [ecx + 3]
imul eax, ebx
add eax, edx
add ecx, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
call fcn.004a1350
test eax, eax
je 0x5318a8
push str.uiview_move_window_by_index
push eax
call edi
test eax, eax
je 0x5318a8
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x34]
push ecx
push 3
push edx
push esi
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x64]
push edx
mov ecx, 0x5ce6d8
call fcn.004c2bb0
cmp dword [esp + 0x74], 0
mov dword [esp + 0x88], 0
je 0x531931
lea eax, [esp + 0x60]
lea esi, [esp + 0x44]
call fcn.0052eb40
cmp dword [eax + 0x18], 8
mov byte [esp + 0x88], 1
jb 0x5318f0
mov edi, dword [eax + 4]
jmp 0x5318f3
lea edi, [eax + 4]
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x53191d
push str.uiview_set_tip_text_by_index
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53191d
mov ecx, dword [esp + 0x90]
push edi
push 3
push ecx
push esi
call eax
cmp dword [esp + 0x5c], 8
jb 0x531931
mov edx, dword [esp + 0x48]
push edx
call fcn.0055215c
add esp, 4
add ebx, 1
cmp dword [esp + 0x78], 0x10
mov dword [esp + 0x88], 0xffffffff
jb 0x531953
mov eax, dword [esp + 0x64]
push eax
call fcn.0055215c
add esp, 4
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + 4]
mov edi, dword [ebp + 4]
neg esi
sbb esi, esi
and esi, 5
call fcn.004a1350
test eax, eax
je 0x53198b
push str.uiview_show_window_part_by_index
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53198b
mov edx, dword [esp + 0x90]
push esi
push 3
push edx
push edi
call eax
cmp byte [esp + 0x17], 0
je 0x531a2c
mov eax, dword [0x5ceb08]
mov edx, dword [0x5ceb04]
mov ecx, dword [0x5ceb0c]
mov esi, dword [ebp + 4]
mov dword [esp + 0x38], eax
mov eax, dword [0x5ceb10]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
sub ecx, edx
lea eax, [ecx + 3]
imul eax, ebx
add eax, edx
add ecx, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
call fcn.004a1350
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x531a00
push str.uiview_move_window_by_index
push eax
call edi
test eax, eax
je 0x531a00
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x34]
push ecx
push 4
push edx
push esi
call eax
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x531a32
push str.uiview_set_tip_text_by_index
push eax
call edi
test eax, eax
je 0x531a32
mov ecx, dword [esp + 0x90]
push 0x5975c8
push 4
push ecx
push esi
call eax
jmp 0x531a32
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x531a65
push str.uiview_show_window_part_by_index
push eax
call edi
test eax, eax
je 0x531a65
mov dl, byte [esp + 0x17]
mov ebx, dword [esp + 0x90]
neg dl
sbb edx, edx
and edx, 5
push edx
push 4
push ebx
push esi
call eax
jmp 0x531a6c
mov ebx, dword [esp + 0x90]
mov esi, dword [ebp + 4]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.004a1350
test eax, eax
je 0x531aa1
push str.uiview_get_window_rect_by_index
push eax
call edi
test eax, eax
je 0x531aa1
lea ecx, [esp + 0x24]
push ecx
push 0x1e
push ebx
push esi
call eax
cmp byte [esp + 0x17], 0
je 0x531c7f
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x110]
mov ebp, dword [eax + 0x88]
mov edx, eax
mov ebx, dword [edx]
call fcn.00444df0
push edi
mov esi, eax
push ebp
push ebx
mov ecx, esi
call fcn.00439240
push eax
mov ecx, esi
call fcn.00507840
mov esi, eax
cmp esi, 2
mov ebx, 0x59cae4
je 0x531aea
mov ebx, 0x59cad8
mov ebp, dword [esp + 0x20]
mov edi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x531b18
push str.uiview_set_window_text
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x531b18
mov ecx, dword [esp + 0x90]
push ebx
push 0x1f
push ecx
push edi
call eax
cmp esi, 1
je 0x531b2b
cmp esi, 2
je 0x531b2b
cmp esi, 4
je 0x531b2b
xor bl, bl
jmp 0x531b2d
mov bl, 1
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x110]
mov ecx, dword [eax + 0x88]
push edx
mov edx, dword [eax]
push ecx
push edx
call fcn.00444df0
mov ecx, eax
call fcn.00439240
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [ebp + 0x50]
call fcn.00530e40
test bl, bl
mov ecx, dword [esp + 0x90]
mov dword [eax], ecx
mov dword [eax + 4], esi
je 0x531c77
xor esi, esi
mov ebx, ebp
mov edi, dword [ebx + 4]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call fcn.004a1350
cmp eax, esi
je 0x531bb5
push str.uiview_get_window_rect_by_index
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x531bb5
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x44]
push edx
push 0x1f
push ecx
push edi
call eax
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov edx, esi
sub edx, ecx
sub edx, edi
lea eax, [edx + ebp + 0x61]
cdq
sub eax, edx
sar eax, 1
sub ecx, esi
mov esi, dword [ebx + 4]
mov edx, eax
mov dword [esp + 0x28], eax
lea eax, [eax + ecx + 5]
sub edx, ebp
add edi, edx
add ecx, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], eax
call fcn.004a1350
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x531c22
push str.uiview_move_window_by_index
push eax
call edi
test eax, eax
je 0x531c22
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x44]
push ecx
push 0x1f
push edx
push esi
call eax
mov esi, dword [ebx + 4]
call fcn.004a1350
test eax, eax
je 0x531c4c
push str.uiview_move_window_by_index
push eax
call edi
test eax, eax
je 0x531c4c
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x24]
push ecx
push 0x1e
push edx
push esi
call eax
mov ebx, dword [ebx + 4]
call fcn.004a1350
test eax, eax
je 0x531ce4
push str.uiview_show_window_part_by_index
push eax
call edi
test eax, eax
je 0x531ce4
mov ecx, dword [esp + 0x90]
push 5
push 0x1f
push ecx
push ebx
jmp 0x531ce2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, ecx
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov eax, ecx
sub eax, esi
add eax, 0x66
cdq
sub eax, edx
sar eax, 1
mov edx, eax
sub edx, ecx
add esi, edx
mov dword [esp + 0x30], esi
mov esi, dword [ebp + 4]
mov dword [esp + 0x28], eax
call fcn.004a1350
test eax, eax
je 0x531cc4
push str.uiview_move_window_by_index
push eax
call edi
test eax, eax
je 0x531cc4
lea ecx, [esp + 0x24]
push ecx
push 0x1e
push ebx
push esi
call eax
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x531ce4
push str.uiview_show_window_part_by_index
push eax
call edi
test eax, eax
je 0x531ce4
push 0
push 0x1f
push ebx
push esi
call eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00552d63
add esp, 0x78
ret 8