Function at 0x501430
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x58d6d0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5cca0c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [esp + 0x8c], ebx
mov esi, 1
mov dword [esp + 0x70], esi
je 0x501862
call fcn.004c7a80
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x9c]
push edx
lea ecx, [edi + 0x134]
mov dword [edi + 0x11c], esi
call fcn.0040a080
movzx eax, byte [esp + 0xb0]
mov ecx, dword [edi + 4]
push 0x65
push ecx
mov dword [edi + 0x120], eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ebp, dword [edi + 0xa8]
mov edx, dword [edi + 0xec]
mov esi, dword [edi + 0xf0]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
add ebp, 2
mov dword [esp + 0x28], edx
call fcn.004a1350
cmp eax, ebx
je 0x501513
push str.uiview_get_window_rect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x501513
mov ecx, dword [esp + 0x28]
push esi
push ecx
lea edx, [esp + 0x44]
push edx
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffffe
cmp dword [edi + 0x148], ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x78]
lea esi, [esp + 0x4c]
jne 0x50167c
mov dword [edi + 0x128], 4
call fcn.004fd6c0
cmp dword [eax + 0x18], 8
mov byte [esp + 0x70], 2
jb 0x501555
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
jmp 0x50155c
add eax, 4
mov dword [esp + 0x1c], eax
mov edx, dword [edi + 0x110]
mov eax, dword [edi + 0x10c]
lea esi, [edi + 0x10c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
call fcn.004a1350
cmp eax, ebx
je 0x5015a2
push str.uiview_set_window_text
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x5015a2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
push ecx
call eax
cmp dword [esp + 0x64], 8
mov byte [esp + 0x70], 1
jb 0x5015bb
mov edx, dword [esp + 0x50]
push edx
call fcn.0055215c
add esp, 4
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.004a1350
cmp eax, ebx
je 0x5015f4
push str.uiview_get_text_extent_point32
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x5015f4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push ecx
push edx
call eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ecx, eax
sub ecx, ebp
cmp edx, ecx
jge 0x501611
sub eax, edx
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
add ebp, eax
jmp 0x501615
mov dword [esp + 0x20], ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.004a1350
cmp eax, ebx
je 0x50164c
push str.uiview_get_window_rect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x50164c
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
push ecx
lea edx, [esp + 0x34]
push edx
call eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
push 1
sub ecx, eax
push ecx
push edx
push eax
push ebp
mov ecx, esi
call fcn.004296d0
mov eax, dword [edi + 0x114]
mov ebp, dword [edi + 0x118]
mov dword [esp + 0x14], eax
jmp 0x5017c1
mov dword [edi + 0x128], 5
call fcn.004fd6c0
cmp dword [eax + 0x18], 8
mov byte [esp + 0x70], 3
jb 0x50169f
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
jmp 0x5016a6
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x118]
mov ecx, dword [edi + 0x114]
lea esi, [edi + 0x114]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.004a1350
cmp eax, ebx
je 0x5016ec
push str.uiview_set_window_text
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x5016ec
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
push edx
call eax
cmp dword [esp + 0x64], 8
mov byte [esp + 0x70], 1
jb 0x501705
mov eax, dword [esp + 0x50]
push eax
call fcn.0055215c
add esp, 4
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
call fcn.004a1350
cmp eax, ebx
je 0x50173e
push str.uiview_get_text_extent_point32
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x50173e
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push edx
push ecx
call eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ecx, eax
sub ecx, ebp
cmp edx, ecx
jge 0x50175b
sub eax, edx
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
add ebp, eax
jmp 0x50175f
mov dword [esp + 0x20], ecx
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.004a1350
cmp eax, ebx
je 0x501796
push str.uiview_get_window_rect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x501796
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x34]
push ecx
call eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
push 1
sub edx, eax
push edx
push ecx
push eax
push ebp
mov ecx, esi
call fcn.004296d0
mov edx, dword [edi + 0x10c]
mov ebp, dword [edi + 0x110]
mov dword [esp + 0x14], edx
call fcn.004a1350
cmp eax, ebx
je 0x5017e3
push str.uiview_show_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x5017e3
mov ecx, dword [esp + 0x14]
push ebx
push ebp
push ecx
call eax
mov ebp, dword [esi + 4]
mov esi, dword [esi]
call fcn.004a1350
cmp eax, ebx
je 0x501807
push str.uiview_show_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x501807
push 5
push ebp
push esi
call eax
mov esi, dword [edi + 0xf0]
mov ebp, dword [edi + 0xec]
call fcn.004a1350
cmp eax, ebx
je 0x501832
push str.uiview_show_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x501832
push 5
push esi
push ebp
call eax
mov edx, dword [edi + 0x2c]
mov esi, dword [edi + 4]
push str.uiview_show_background_bitmap
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x50185a
push ebx
push 1
push 1
push 0x3e8
push 0x59648c
push esi
call eax
push ebx
mov ecx, edi
call fcn.004f3240
mov esi, 0x10
cmp dword [esp + 0x90], esi
jb 0x50187d
mov eax, dword [esp + 0x7c]
push eax
call fcn.0055215c
add esp, 4
cmp dword [esp + 0xac], esi
mov byte [esp + 0x7c], bl
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], 0xf
jb 0x5018ac
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0055215c
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x3c