Function at 0x413020
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044658b
mov esi, eax
test esi, esi
je 0x413051
mov edx, dword [esi]
mov ecx, esi
push str.richedit
call dword [edx + 4]
test eax, eax
je 0x413051
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x66b2a4]
test ecx, ecx
je 0x413062
call fcn.004406e8
jmp 0x413064
xor eax, eax
push ebx
push 0x2800
mov dword [ebp - 4], eax
call fcn.00499b65
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
lea esi, [ebx + 0x2800]
mov dword [ebp - 0xc], esi
cmp ebx, esi
jae 0x4130cc
push str.FindChildByName2_Failed__no_window_of_class
push 0x5db0b8
sub esi, ebx
push esi
push ebx
call fcn.00414bf0
mov ecx, eax
add esp, 0x10
cmp ecx, esi
je 0x4130c0
cmp ecx, 0xffffffff
jne 0x41326e
call fcn.00499b4d
cmp dword [eax], 0x26d8
jne 0x413276
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov byte [eax - 1], 0
add dword [ebp - 8], ecx
push edi
push str.richedit
lea ecx, [ebp - 0x10]
call fcn.00414b50
mov esi, eax
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
cmp eax, edi
jae 0x413128
push str._with_name_of__
sub edi, eax
push 0x5db0b8
push edi
push eax
call fcn.00414bf0
mov ecx, eax
add esp, 0x10
cmp ecx, edi
je 0x41311c
cmp ecx, 0xffffffff
jne 0x413283
call fcn.00499b4d
cmp dword [eax], 0x26d8
jne 0x41328b
mov eax, dword [esi + 4]
mov ecx, edi
mov byte [eax - 1], 0
add dword [esi + 8], ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.00414b50
mov esi, eax
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
cmp eax, edi
jae 0x413180
push str.__was_found_within__
sub edi, eax
push 0x5db0b8
push edi
push eax
call fcn.00414bf0
mov ecx, eax
add esp, 0x10
cmp ecx, edi
je 0x413174
cmp ecx, 0xffffffff
jne 0x413298
call fcn.00499b4d
cmp dword [eax], 0x26d8
jne 0x4132a0
mov eax, dword [esi + 4]
mov ecx, edi
mov byte [eax - 1], 0
add dword [esi + 8], ecx
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
cmp eax, edi
jae 0x4131ca
push dword [ebp + 0xc]
sub edi, eax
push 0x5db0bc
push edi
push eax
call fcn.00414bf0
mov ecx, eax
add esp, 0x10
cmp ecx, edi
je 0x4131be
cmp ecx, 0xffffffff
jne 0x4132ad
call fcn.00499b4d
cmp dword [eax], 0x26d8
jne 0x4132b5
mov eax, dword [esi + 4]
mov ecx, edi
mov byte [eax - 1], 0
add dword [esi + 8], ecx
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
cmp eax, edi
jae 0x413216
push str.__levels
sub edi, eax
push 0x5db0b8
push edi
push eax
call fcn.00414bf0
mov ecx, eax
add esp, 0x10
cmp ecx, edi
je 0x41320a
cmp ecx, 0xffffffff
jne 0x4132c2
call fcn.00499b4d
cmp dword [eax], 0x26d8
jne 0x4132ca
mov eax, dword [esi + 4]
mov ecx, edi
mov byte [eax - 1], 0
add dword [esi + 8], ecx
mov esi, dword [ebp - 4]
pop edi
test esi, esi
je 0x4132d7
mov eax, dword [esi]
mov ecx, esi
push 3
push 0
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x4132d7
mov eax, dword [ebp + 4]
mov ecx, esi
mov edx, dword [esi]
push eax
push str.SOUI::SWindow::FindChildByName2
push 0x20e
push str.f:_shopassistant_thirdparty_soui_souiincludecoreSWnd.h
push ebx
push str.soui
push 3
push 0
call dword [edx + 0x34]
push ebx
call fcn.00499b60
add esp, 4
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
jns 0x4130c9
mov eax, dword [ebp - 8]
xor ecx, ecx
mov byte [eax], 0
jmp 0x4130c9
test ecx, ecx
jns 0x413125
mov eax, dword [esi + 8]
xor ecx, ecx
mov byte [eax], 0
jmp 0x413125
test ecx, ecx
jns 0x41317d
mov eax, dword [esi + 8]
xor ecx, ecx
mov byte [eax], 0
jmp 0x41317d
test ecx, ecx
jns 0x4131c7
mov eax, dword [esi + 8]
xor ecx, ecx
mov byte [eax], 0
jmp 0x4131c7
test ecx, ecx
jns 0x413213
mov eax, dword [esi + 8]
xor ecx, ecx
mov byte [eax], 0
jmp 0x413213
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
cmp eax, esi
jae 0x41350f
push 0x5db4f0
sub esi, eax
push 0x5db0b8
push esi
push eax
call fcn.00414bf0
mov ecx, eax
add esp, 0x10
cmp ecx, esi
je 0x41331b
cmp ecx, 0xffffffff
jne 0x413529
call fcn.00499b4d
cmp dword [eax], 0x26d8
jne 0x413531
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov byte [eax - 1], 0
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 8], eax
cmp eax, esi
jae 0x41350f
push str.SOUI::SWindow::FindChildByName2
sub esi, eax
push 0x5db0b8
push esi
push eax
call fcn.00414bf0
mov ecx, eax
add esp, 0x10
cmp ecx, esi
je 0x41336d
cmp ecx, 0xffffffff
jne 0x41353e
call fcn.00499b4d
cmp dword [eax], 0x26d8
jne 0x413546
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov byte [eax - 1], 0
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 8], eax
cmp eax, esi
jae 0x41350f
push 0x5db4f0
sub esi, eax
push 0x5db0b8
push esi
push eax
call fcn.00414bf0
mov ecx, eax
add esp, 0x10
cmp ecx, esi
je 0x4133bf
cmp ecx, 0xffffffff
jne 0x413553
call fcn.00499b4d
cmp dword [eax], 0x26d8
jne 0x41355b
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov byte [eax - 1], 0
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 8], eax
cmp eax, esi
jae 0x41350f
push str.f:_shopassistant_thirdparty_soui_souiincludecoreSWnd.h
sub esi, eax
push 0x5db0b8
push esi
push eax
call fcn.00414bf0
mov ecx, eax
add esp, 0x10
cmp ecx, esi
je 0x413411
cmp ecx, 0xffffffff
jne 0x413568
call fcn.00499b4d
cmp dword [eax], 0x26d8
jne 0x413570
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov byte [eax - 1], 0
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 8], eax
cmp eax, esi
jae 0x41350f
push 0x5db4f4
sub esi, eax
push 0x5db0b8
push esi
push eax
call fcn.00414bf0
mov ecx, eax
add esp, 0x10
cmp ecx, esi
je 0x413463
cmp ecx, 0xffffffff
jne 0x41357d
call fcn.00499b4d
cmp dword [eax], 0x26d8
jne 0x413585
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov byte [eax - 1], 0
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 8], eax
cmp eax, esi
jae 0x41350f
push 0x20e
sub esi, eax
push 0x5db0bc
push esi
push eax
call fcn.00414bf0
mov ecx, eax
add esp, 0x10
cmp ecx, esi
je 0x4134b5
cmp ecx, 0xffffffff
jne 0x413592
call fcn.00499b4d
cmp dword [eax], 0x26d8
jne 0x41359a
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov byte [eax - 1], 0
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 8], eax
cmp eax, esi
jae 0x41350f
push 0x5db4f8
sub esi, eax
push 0x5db0b8
push esi
push eax
call fcn.00414bf0
mov ecx, eax
add esp, 0x10
cmp ecx, esi
je 0x413503
cmp ecx, 0xffffffff
jne 0x4135a7
call fcn.00499b4d
cmp dword [eax], 0x26d8
jne 0x4135af
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov byte [eax - 1], 0
add dword [ebp - 8], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call fcn.00499b60
add esp, 4
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
jns 0x413324
mov eax, dword [ebp - 8]
xor ecx, ecx
mov byte [eax], 0
jmp 0x413324
test ecx, ecx
jns 0x413376
mov eax, dword [ebp - 8]
xor ecx, ecx
mov byte [eax], 0
jmp 0x413376
test ecx, ecx
jns 0x4133c8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov byte [eax], 0
jmp 0x4133c8
test ecx, ecx
jns 0x41341a
mov eax, dword [ebp - 8]
xor ecx, ecx
mov byte [eax], 0
jmp 0x41341a
test ecx, ecx
jns 0x41346c
mov eax, dword [ebp - 8]
xor ecx, ecx
mov byte [eax], 0
jmp 0x41346c
test ecx, ecx
jns 0x4134be
mov eax, dword [ebp - 8]
xor ecx, ecx
mov byte [eax], 0
jmp 0x4134be
test ecx, ecx
jns 0x41350c
mov eax, dword [ebp - 8]
xor ecx, ecx
mov byte [eax], 0
jmp 0x41350c