Function at 0x512670
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
lea ebx, [esi + 0xc8]
push ecx
mov ecx, ebx
mov dword [esp + 0x1c], esi
call fcn.00409eb0
mov eax, dword [esp + 0x24]
test eax, eax
mov edi, dword [ebx + 4]
je 0x5126a3
cmp eax, ebx
je 0x5126a8
call fcn.005532de
cmp dword [esp + 0x28], edi
je 0x512a14
mov edx, dword [ebx + 4]
mov edi, dword [edx]
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
jmp 0x5126d0
test ebx, ebx
mov ebp, dword [esi + 0xcc]
je 0x5126e4
lea eax, [esi + 0xc8]
cmp ebx, eax
je 0x5126e9
call fcn.005532de
cmp edi, ebp
je 0x512768
test ebx, ebx
jne 0x5126f6
call fcn.005532de
cmp edi, dword [ebx + 4]
jne 0x512700
call fcn.005532de
mov eax, dword [edi + 0xc]
cmp eax, dword [esp + 0x48]
je 0x512768
mov dword [esp + 0x18], 0
cmp edi, dword [ebx + 4]
jne 0x51271b
call fcn.005532de
mov edi, dword [edi + 0xc]
mov ebx, dword [esi + 4]
call fcn.004a1350
test eax, eax
je 0x512752
push str.uiview_is_control_visible
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x512752
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
call eax
test eax, eax
jne 0x512752
cmp dword [esp + 0x18], eax
je 0x512752
add dword [esp + 0x10], 1
lea ecx, [esp + 0x1c]
call fcn.00403de0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
jmp 0x5126d0
mov edi, dword [esi + 4]
call fcn.004a1350
test eax, eax
je 0x51278e
push str.uiview_show_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x51278e
mov edx, dword [esp + 0x48]
push 0
push edx
push edi
call eax
lea ecx, [esp + 0x24]
call fcn.00403de0
mov ebp, dword [esp + 0x24]
test ebp, ebp
mov eax, dword [esi + 0xcc]
lea ebx, [esi + 0xc8]
mov dword [esp + 0x30], eax
je 0x5127b3
cmp ebp, ebx
je 0x5127b8
call fcn.005532de
mov edi, dword [esp + 0x28]
cmp edi, dword [esp + 0x30]
je 0x5128f5
test ebp, ebp
jne 0x5127cf
call fcn.005532de
cmp edi, dword [ebp + 4]
jne 0x5127d9
call fcn.005532de
mov ebx, dword [edi + 0xc]
mov ebp, dword [esi + 4]
call fcn.004a1350
test eax, eax
je 0x51278e
push str.uiview_get_window_rect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x51278e
push ebx
push ebp
lea ecx, [esp + 0x3c]
push ecx
call eax
test eax, eax
jne 0x51278e
mov edx, dword [esp + 0x24]
cmp edi, dword [edx + 4]
jne 0x512813
call fcn.005532de
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
mov edx, dword [ecx + 4]
sub esi, eax
mov ebp, eax
mov eax, dword [edi + 0xc]
add ebx, 0xffffffec
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call fcn.004a1350
test eax, eax
je 0x512864
push str.uiview_move_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x512864
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 1
push 0x14
push esi
push ebx
push ebp
push ecx
push edx
call eax
cmp dword [esp + 0x10], 5
jle 0x5128b0
mov eax, dword [esp + 0x24]
cmp edi, dword [eax + 4]
jne 0x512879
call fcn.005532de
mov ecx, dword [esp + 0x14]
mov edi, dword [edi + 0xc]
mov esi, dword [ecx + 4]
call fcn.004a1350
test eax, eax
je 0x5128e7
push str.uiview_show_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5128e7
push 0
push edi
push esi
call eax
add dword [esp + 0x10], 1
mov esi, dword [esp + 0x14]
jmp 0x51278e
mov edx, dword [esp + 0x24]
cmp edi, dword [edx + 4]
jne 0x5128be
call fcn.005532de
mov eax, dword [esp + 0x14]
mov edi, dword [edi + 0xc]
mov esi, dword [eax + 4]
call fcn.004a1350
test eax, eax
je 0x5128e7
push str.uiview_show_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5128e7
push 1
push edi
push esi
call eax
add dword [esp + 0x10], 1
mov esi, dword [esp + 0x14]
jmp 0x51278e
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, ebx
call fcn.00409eb0
mov edi, dword [eax]
test edi, edi
mov ebp, dword [eax + 4]
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], eax
je 0x51291e
cmp edi, ebx
je 0x512923
call fcn.005532de
cmp ebp, dword [esp + 0x30]
je 0x512a70
test edi, edi
jne 0x512936
call fcn.005532de
cmp ebp, dword [edi + 4]
jne 0x512940
call fcn.005532de
add ebp, 0x10
cmp dword [ebp + 0x18], 0x10
jb 0x51294e
mov eax, dword [ebp + 4]
jmp 0x512951
lea eax, [ebp + 4]
movzx ecx, word [esi + 0x38]
mov edx, dword [esi + 0x34]
push eax
push ecx
push 0xbd6
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x28]
cmp eax, dword [edi + 4]
jne 0x512974
call fcn.005532de
mov ecx, dword [esi + 0x38]
push ebp
push ecx
call fcn.00550010
mov ecx, eax
call fcn.0054e6d0
mov ebp, dword [esi + 4]
call fcn.004a1350
test eax, eax
je 0x5129a9
push str.uiview_destory_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5129a9
mov edx, dword [esp + 0x48]
push edx
push ebp
call eax
mov eax, dword [esp + 0x28]
push eax
push edi
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.00410540
mov ecx, esi
call fcn.0050f070
cmp dword [esi + 0xd0], 5
jbe 0x5129ff
mov eax, dword [esi + 0xdc]
test eax, eax
jle 0x5129ff
cmp eax, 1
mov ecx, esi
jle 0x5129df
add eax, 0xffffffff
push eax
call fcn.0050ed40
mov edx, dword [esi + 0xdc]
mov eax, dword [esi + 0xd8]
push 1
push edx
push 2
push eax
call dword [sym.imp.USER32.dll_SetScrollPos]
jmp 0x512a08
push 0
mov ecx, esi
call fcn.0050ed40
mov ecx, dword [esi + 0x38]
push ecx
call fcn.004f1a50
add esp, 4
cmp dword [esi + 0xd0], 0
mov esi, dword [esi + 4]
je 0x512a4d
call fcn.004a1350
test eax, eax
je 0x512a70
push str.uiview_enable_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x512a70
push 1
push 0x51b
push esi
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
call fcn.004a1350
test eax, eax
je 0x512a70
push str.uiview_enable_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x512a70
push 0
push 0x51b
push esi
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4