Function at 0x5138c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5cca0c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xd0]
test eax, eax
lea ecx, [eax + 0x9c4]
push edi
mov dword [ebp - 0x10], ecx
jbe 0x51394a
mov edx, dword [esi + 0xcc]
mov eax, dword [edx]
lea ebx, [esi + 0xc8]
mov edi, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
mov edi, edi
test edi, edi
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x24], ecx
je 0x51390e
cmp edi, ebx
je 0x513913
call fcn.005532de
mov edx, dword [ebp - 0x24]
cmp dword [ebp - 8], edx
je 0x51394a
test edi, edi
jne 0x513924
call fcn.005532de
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 4]
jne 0x513931
call fcn.005532de
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xc]
add eax, 1
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
call fcn.00403de0
mov edi, dword [ebp - 0xc]
jmp 0x513900
mov eax, dword [esi + 0xd0]
test eax, eax
lea edx, [eax + eax*4]
lea ecx, [edx*4 + 0x2d]
mov dword [ebp - 0x20], 0xb
mov dword [ebp - 0x1c], ecx
jbe 0x51399c
mov edi, dword [esi + 4]
call fcn.004a1350
test eax, eax
je 0x51399c
push str.uiview_get_window_rect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x51399c
mov edx, dword [ebp - 0x10]
add edx, 0xffffffff
push edx
push edi
lea ecx, [ebp - 0x30]
push ecx
call eax
test eax, eax
jne 0x51399c
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add eax, 0x149
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
add ecx, 0x14
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x14], ecx
jb 0x5139be
mov eax, dword [eax + 4]
jmp 0x5139c1
add eax, 4
test eax, eax
mov dword [ebp - 8], eax
jne 0x5139cc
xor edi, edi
jmp 0x513a14
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
add ebx, 1
cmp ebx, 0x3fffffff
jg 0x513a10
lea eax, [ebx + ebx]
call fcn.00553150
mov edi, esp
test edi, edi
je 0x513a10
mov edx, dword [ebp - 8]
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0x3a8
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x513a12
xor eax, eax
mov edi, eax
mov ebx, dword [esi + 4]
call fcn.004a1350
test eax, eax
je 0x513ad2
push str.uiview_create_window_by_example
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x513ad2
lea ecx, [ebp - 0x20]
push ecx
push edi
mov edi, dword [ebp - 0x10]
push edi
push 0x7d0
push ebx
call eax
test eax, eax
jne 0x513ad2
lea edx, [ebp - 0x10]
push edx
lea ecx, [esi + 0xc8]
call fcn.00415aa0
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.0040a080
cmp dword [esi + 0xd0], 5
jbe 0x513a9a
mov ebx, dword [esi + 4]
call fcn.004a1350
test eax, eax
je 0x513a9a
push str.uiview_show_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x513a9a
push 0
push edi
push ebx
call eax
mov ecx, esi
call fcn.0050f070
mov eax, dword [esi + 0xd0]
cmp eax, 5
jbe 0x513ad2
add eax, 0xfffffffb
push eax
mov ecx, esi
call fcn.0050ed40
mov edx, dword [esi + 0xd0]
mov eax, dword [esi + 0xd8]
push 1
sub edx, 5
push edx
push 2
push eax
call dword [sym.imp.USER32.dll_SetScrollPos]
cmp dword [esi + 0xd0], 0
mov esi, dword [esi + 4]
je 0x513afb
call fcn.004a1350
test eax, eax
je 0x513b1e
push str.uiview_enable_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x513b1e
push 1
jmp 0x513b16
call fcn.004a1350
test eax, eax
je 0x513b1e
push str.uiview_enable_window
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x513b1e
push 0
push 0x51b
push esi
call eax
lea esp, [ebp - 0x3c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552d63
mov esp, ebp
pop ebp
ret 4