Function at 0x5219e0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x38
mov edx, dword [esp + 0x3c]
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x94]
cmp eax, edx
mov dword [esp + 8], ebx
je 0x521d31
sub eax, edx
mov ecx, eax
shl ecx, 4
push ebp
add ecx, eax
lea ebp, [ebx + 0x98]
mov dword [ebx + 0x94], edx
mov eax, dword [ebp + 4]
add ecx, ecx
cmp dword [ebx + 0xc8], 0
push esi
mov esi, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], 0
setne byte [esp + 0x48]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebp
push edi
jmp 0x521a40
test ebp, ebp
mov edi, dword [ebx + 0x9c]
lea eax, [ebx + 0x98]
je 0x521a54
cmp ebp, eax
je 0x521a59
call fcn.005532de
cmp esi, edi
je 0x521c0d
test ebp, ebp
jne 0x521a6a
call fcn.005532de
cmp esi, dword [ebp + 4]
jne 0x521a74
call fcn.005532de
cmp dword [esi + 0xc], 5
je 0x521a8e
cmp esi, dword [ebp + 4]
jne 0x521a84
call fcn.005532de
cmp dword [esi + 0xc], 3
jne 0x521bf7
xor edi, edi
mov dword [esp + 0x18], edi
cmp esi, dword [ebp + 4]
jne 0x521a9e
call fcn.005532de
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x521bf7
mov eax, dword [esi + 0x18]
sub eax, ecx
sar eax, 3
cmp edi, eax
jae 0x521bf7
cmp esi, dword [ebp + 4]
jne 0x521ac3
call fcn.005532de
mov ecx, dword [esi + 0x14]
xor ebp, ebp
cmp ecx, ebp
je 0x521ad8
mov eax, dword [esi + 0x18]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x521add
call fcn.005532de
mov ecx, dword [esi + 0x14]
mov edi, dword [ecx + edi*8]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
call fcn.004a1350
cmp eax, ebp
je 0x521b1c
push str.uiview_get_window_rect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x521b1c
push edi
push ebx
lea edx, [esp + 0x40]
push edx
call eax
mov eax, dword [esp + 0x20]
push eax
push ebp
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
cmp byte [esp + 0x4c], 0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov bl, 1
je 0x521b4d
cmp eax, 0x2d
jle 0x521b5d
cmp ecx, 0x149
jge 0x521b5d
jmp 0x521b5f
cmp dword [0x5cbf8c], eax
jge 0x521b5d
cmp dword [0x5cbf94], ecx
jg 0x521b5f
xor bl, bl
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
sub eax, ecx
mov edi, eax
mov eax, dword [esp + 0x38]
sub esi, eax
mov dword [esp + 0x24], eax
mov eax, dword [edx + 4]
mov ebp, ecx
mov dword [esp + 0x28], eax
call fcn.004a1350
test eax, eax
je 0x521bad
push str.uiview_move_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x521bad
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push 1
push edi
push esi
push ebp
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push ecx
call eax
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 4]
call fcn.004a1350
test eax, eax
je 0x521bdd
push str.uiview_show_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x521bdd
mov ecx, dword [esp + 0x1c]
neg bl
sbb ebx, ebx
and ebx, 5
push ebx
push ecx
push esi
call eax
add dword [esp + 0x18], 1
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
jmp 0x521a94
lea ecx, [esp + 0x30]
call fcn.0051e450
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
jmp 0x521a40
cmp byte [esp + 0x50], 0
je 0x521d2e
mov edx, dword [ebx + 0xc4]
mov edi, dword [edx]
lea ebp, [ebx + 0xc0]
mov esi, ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
test esi, esi
mov eax, dword [ebp + 4]
mov dword [esp + 0x2c], eax
je 0x521c3f
cmp esi, ebp
je 0x521c44
call fcn.005532de
cmp edi, dword [esp + 0x2c]
je 0x521c8d
test esi, esi
jne 0x521c53
call fcn.005532de
cmp edi, dword [esi + 4]
jne 0x521c5d
call fcn.005532de
mov ecx, dword [ebx + 0x94]
cmp ecx, dword [edi + 0x10]
jl 0x521c8d
cmp edi, dword [esi + 4]
jne 0x521c72
call fcn.005532de
movsx edx, byte [edi + 0xc]
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], edx
call fcn.0051e0f0
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
jmp 0x521c30
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x521d2e
movsx eax, byte [ebx + 0x90]
cmp ecx, eax
je 0x521d2e
push eax
push 4
mov ecx, ebx
call fcn.00521060
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
push 4
mov ecx, ebx
call fcn.00521060
test esi, esi
mov ebp, eax
je 0x521cea
mov edi, dword [ebx + 4]
call fcn.004a1350
test eax, eax
je 0x521cea
push str.uiview_set_selected
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x521cea
push 0
push esi
push edi
call eax
test ebp, ebp
je 0x521d10
mov esi, dword [ebx + 4]
call fcn.004a1350
test eax, eax
je 0x521d10
push str.uiview_set_selected
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x521d10
push 1
push ebp
push esi
call eax
movzx ecx, byte [ebx + 0x90]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, ebx
call fcn.00521290
mov al, byte [esp + 0x10]
mov byte [ebx + 0x90], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8