Function at 0x535700
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x12c
mov eax, dword [0x5cca0c]
xor eax, esp
mov dword [esp + 0x128], eax
cmp dword [esp + 0x130], 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push esi
mov esi, dword [esp + 0x140]
push edi
mov ebp, ecx
jne 0x535a81
mov edi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x53575a
push str.uiview_get_window_rect
push eax
call ebx
test eax, eax
je 0x53575a
push 0x4b7
push edi
lea ecx, [esp + 0x30]
push ecx
call eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
add edx, 5
test esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jle 0x53588d
push 0xfe
lea eax, [esp + 0x3e]
push 0
push eax
mov word [esp + 0x44], 0
call fcn.00552500
push esi
push 0x5980cc
lea ecx, [esp + 0x4c]
push 0x80
push ecx
call fcn.00555b19
mov edi, dword [ebp + 4]
mov esi, eax
add esi, esi
add esi, esi
add esp, 0x1c
add esi, esi
call fcn.004a1350
test eax, eax
je 0x5357d8
push str.uiview_set_window_text
push eax
call ebx
test eax, eax
je 0x5357d8
lea edx, [esp + 0x38]
push edx
push 0xffffffffffffffff
push 0x4be
push edi
call eax
mov edi, dword [esp + 0x2c]
mov ebx, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x53580e
push str.uiview_move_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53580e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 1
push ecx
push esi
push edi
push edx
push 0x4be
push ebx
call eax
add dword [esp + 0x10], esi
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x53583b
push str.uiview_get_window_rect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53583b
push 0x4bf
push esi
lea ecx, [esp + 0x20]
push ecx
call eax
mov esi, dword [esp + 0x20]
sub esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535879
push str.uiview_move_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x535879
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 1
push edx
push esi
push edi
push ecx
push 0x4bf
push ebx
call eax
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
lea ecx, [eax + edx + 5]
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x148], 0
jle 0x5359a6
push 0xfe
lea edx, [esp + 0x3e]
push 0
push edx
mov word [esp + 0x44], 0
call fcn.00552500
mov eax, dword [esp + 0x154]
push eax
push 0x5980cc
lea ecx, [esp + 0x4c]
push 0x80
push ecx
call fcn.00555b19
mov edi, dword [ebp + 4]
add esp, 0x1c
mov esi, eax
call fcn.004a1350
test eax, eax
je 0x5358ff
push str.uiview_set_window_text
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5358ff
lea edx, [esp + 0x38]
push edx
push 0xffffffffffffffff
push 0x4c6
push edi
call eax
mov edi, dword [esp + 0x2c]
mov ebx, dword [ebp + 4]
add esi, esi
add esi, esi
add esi, esi
call fcn.004a1350
test eax, eax
je 0x53593b
push str.uiview_move_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53593b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 1
push ecx
push esi
push edi
push edx
push 0x4c6
push ebx
call eax
add dword [esp + 0x10], esi
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535968
push str.uiview_get_window_rect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x535968
push 0x4c7
push esi
lea ecx, [esp + 0x20]
push ecx
call eax
mov esi, dword [esp + 0x20]
sub esi, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
mov ebx, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x5359a6
push str.uiview_move_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5359a6
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 1
push edx
push esi
push edi
push ecx
push 0x4c7
push ebx
call eax
cmp dword [esp + 0x144], 0
jle 0x535a06
cmp dword [esp + 0x148], 0
jle 0x535a06
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x5359e3
push str.uiview_set_text_font
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5359e3
push str.font_normal_12
push 0x4be
push esi
call eax
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535a58
push str.uiview_set_text_font
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x535a58
push str.font_normal_blod
jmp 0x535a50
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535a2f
push str.uiview_set_text_font
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x535a2f
push str.font_normal_12
push 0x4be
push esi
call eax
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535a58
push str.uiview_set_text_font
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x535a58
push str.font_normal_12
push 0x4c6
push esi
call eax
cmp byte [ebp + 0x474], 1
jne 0x535aac
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535aac
push str.uiview_show_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x535aac
push 0
jmp 0x535aa4
cmp byte [ebp + 0x474], 1
jne 0x535aac
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535aac
push str.uiview_show_window
push eax
call ebx
test eax, eax
je 0x535aac
push 1
push 0x4c3
push esi
call eax
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x535ada
push str.uiview_show_window
push eax
call ebx
test eax, eax
je 0x535ada
mov edx, dword [esp + 0x140]
push edx
push 0x4b7
push esi
call eax
cmp dword [esp + 0x140], 0
je 0x535af5
cmp dword [esp + 0x144], 0
je 0x535af5
mov edi, 1
jmp 0x535af7
xor edi, edi
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535b18
push str.uiview_show_window
push eax
call ebx
test eax, eax
je 0x535b18
push edi
push 0x4be
push esi
call eax
cmp dword [esp + 0x140], 0
je 0x535b33
cmp dword [esp + 0x144], 0
je 0x535b33
mov edi, 1
jmp 0x535b35
xor edi, edi
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535b56
push str.uiview_show_window
push eax
call ebx
test eax, eax
je 0x535b56
push edi
push 0x4bf
push esi
call eax
cmp dword [esp + 0x140], 0
je 0x535b71
cmp dword [esp + 0x148], 0
je 0x535b71
mov edi, 1
jmp 0x535b73
xor edi, edi
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535b94
push str.uiview_show_window
push eax
call ebx
test eax, eax
je 0x535b94
push edi
push 0x4c6
push esi
call eax
cmp dword [esp + 0x140], 0
je 0x535baf
cmp dword [esp + 0x148], 0
je 0x535baf
mov edi, 1
jmp 0x535bb1
xor edi, edi
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535bd2
push str.uiview_show_window
push eax
call ebx
test eax, eax
je 0x535bd2
push edi
push 0x4c7
push esi
call eax
cmp dword [esp + 0x144], 0
jne 0x535db5
cmp dword [esp + 0x148], 0
jne 0x535dbf
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535c16
push str.uiview_show_window
push eax
call ebx
test eax, eax
je 0x535c16
mov ecx, dword [esp + 0x140]
push ecx
push 0x4c8
push esi
call eax
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535c3b
push str.uiview_get_window_rect
push eax
call ebx
test eax, eax
je 0x535c3b
push 0x4b7
push esi
lea edx, [esp + 0x20]
push edx
call eax
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
sub esi, dword [esp + 0x1c]
push 0xfe
lea ecx, [esp + 0x3e]
add eax, 5
push 0
push ecx
mov dword [esp + 0x20], eax
mov word [esp + 0x44], 0
call fcn.00552500
push 0
push 0x5980cc
lea edx, [esp + 0x4c]
push 0x80
push edx
call fcn.00555b19
mov ebx, dword [ebp + 4]
mov edi, eax
add edi, edi
add edi, edi
add esp, 0x1c
add edi, edi
call fcn.004a1350
test eax, eax
je 0x535cb2
push str.uiview_set_window_text
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x535cb2
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
push 0x4be
push ebx
call eax
mov edx, dword [ebp + 4]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
call fcn.004a1350
test eax, eax
je 0x535cec
push str.uiview_move_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x535cec
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 1
push esi
push edi
push ebx
push ecx
push 0x4be
push edx
call eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535d1a
push str.uiview_show_window
push eax
call edi
test eax, eax
je 0x535d1a
mov ecx, dword [esp + 0x140]
push ecx
push 0x4be
push esi
call eax
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535d3f
push str.uiview_set_text_font
push eax
call edi
test eax, eax
je 0x535d3f
push str.font_normal_12
push 0x4be
push esi
call eax
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535d61
push str.uiview_enable_window
push eax
call edi
test eax, eax
je 0x535d61
push 0
push 0x4be
push esi
call eax
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535d86
push str.uiview_set_text_font
push eax
call edi
test eax, eax
je 0x535d86
push str.font_normal_12
push 0x4be
push esi
call eax
mov ebp, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535e8a
push str.uiview_set_text_font
push eax
call edi
test eax, eax
je 0x535e8a
push str.font_normal_12
push 0x4c6
jmp 0x535e87
cmp dword [esp + 0x148], 0
jne 0x535e24
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535de1
push str.uiview_show_window
push eax
call ebx
test eax, eax
je 0x535de1
push 0
push 0x4c8
push esi
call eax
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535e03
push str.uiview_enable_window
push eax
call ebx
test eax, eax
je 0x535e03
push 0
push 0x4be
push esi
call eax
mov ebp, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535e8a
push str.uiview_enable_window
push eax
call ebx
test eax, eax
je 0x535e8a
push 0
push 0x4c6
jmp 0x535e87
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535e46
push str.uiview_enable_window
push eax
call ebx
test eax, eax
je 0x535e46
push 1
push 0x4be
push esi
call eax
mov esi, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535e68
push str.uiview_enable_window
push eax
call ebx
test eax, eax
je 0x535e68
push 1
push 0x4c6
push esi
call eax
mov ebp, dword [ebp + 4]
call fcn.004a1350
test eax, eax
je 0x535e8a
push str.uiview_show_window
push eax
call ebx
test eax, eax
je 0x535e8a
push 0
push 0x4c8
push ebp
call eax
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00552d63
add esp, 0x12c
ret 0xc