Function at 0x480120
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 4], ecx
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x40], 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x44], 0
cmp dword [ebp - 0x34], 0
je 0x4801af
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4801af
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 8]
call edx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x48], 0
jne 0x48019a
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x44], 0
je 0x4801ad
jmp 0x48058a
jmp 0x48014b
push 0
push 0
push 0
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x480382
call fcn.00404880
test eax, eax
je 0x4801e9
call fcn.00403cd0
mov ecx, eax
call fcn.0044a710
mov dword [ebp - 0x38], eax
jmp 0x4801f0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
push 0x2801
call fcn.005cd8ee
add esp, 4
mov dword [ebp - 8], eax
xor ecx, ecx
je 0x480233
push 0x764900
push 0xffffffffffffffff
push 0x2800
mov edx, dword [ebp - 8]
push edx
call fcn.00413eb0
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x4c]
mov byte [eax], 0
jmp 0x4802b7
push 0x5002
call fcn.005cd8ee
add esp, 4
mov dword [ebp - 0x1c], eax
push str.::GetMessage_returned__1__error_
push 0xffffffffffffffff
push 0x2800
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00413de0
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x18], 0x2800
jge 0x4802ab
push 0
push 0
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x18]
mov byte [edx], 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005cd8e9
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x480301
push 1
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x2c]
call eax
movzx ecx, al
test ecx, ecx
je 0x480301
mov edx, dword [ebp + 4]
push edx
push 0x76498c
push 0x2c
push 0x7649a8
mov eax, dword [ebp - 8]
push eax
push 0x7649f4
push 1
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x34]
call eax
jmp 0x480364
mov ecx, 1
test ecx, ecx
je 0x480364
push 0x2801
call fcn.005cd8ee
add esp, 4
mov dword [ebp - 0x20], eax
push 0x2c
push 0x764a00
push 0x764a4c
mov edx, dword [ebp - 8]
push edx
push 0x764a64
push 0xffffffffffffffff
push 0x2800
mov eax, dword [ebp - 0x20]
push eax
call fcn.00413eb0
add esp, 0x20
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x54]
mov byte [ecx], 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x20]
push eax
call fcn.005cd8e9
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.005cd8e9
add esp, 4
xor edx, edx
jne 0x4801cf
jmp 0x48014b
cmp dword [ebp - 0x3c], 0
jne 0x480545
call fcn.00404880
test eax, eax
je 0x4803a6
call fcn.00403cd0
mov ecx, eax
call fcn.0044a710
mov dword [ebp - 0x40], eax
jmp 0x4803ad
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
push 0x2801
call fcn.005cd8ee
add esp, 4
mov dword [ebp - 0xc], eax
xor ecx, ecx
je 0x4803f7
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
push eax
push 0x764a78
push 0xffffffffffffffff
push 0x2800
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00413eb0
add esp, 0x14
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x58]
mov byte [edx], 0
jmp 0x480482
push 0x5002
call fcn.005cd8ee
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
push str.SMessageLoop::Run___exiting_code___d
push 0xffffffffffffffff
push 0x2800
mov edx, dword [ebp - 0x28]
push edx
call fcn.00413de0
add esp, 0x14
mov dword [ebp - 0x24], eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x24], 0x2800
jge 0x480476
push 0
push 0
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x24]
mov byte [eax], 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005cd8e9
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4804cc
push 1
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0x2c]
call edx
movzx eax, al
test eax, eax
je 0x4804cc
mov ecx, dword [ebp + 4]
push ecx
push 0x764b14
push 0x31
push 0x764b30
mov edx, dword [ebp - 0xc]
push edx
push 0x764b7c
push 1
push 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x34]
call eax
jmp 0x48052f
mov ecx, 1
test ecx, ecx
je 0x48052f
push 0x2801
call fcn.005cd8ee
add esp, 4
mov dword [ebp - 0x2c], eax
push 0x31
push str.F:PROJECT_BASE_st_pdfcommunalThirdParty_soui3SOUI_srccoreSMsgLoop.cpp
push str.SOUI::SMessageLoop::Run
mov edx, dword [ebp - 0xc]
push edx
push 0x764bec
push 0xffffffffffffffff
push 0x2800
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00413eb0
add esp, 0x20
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x60]
mov byte [ecx], 0
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x2c]
push eax
call fcn.005cd8e9
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005cd8e9
add esp, 4
xor edx, edx
jne 0x48038c
jmp 0x48058a
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp - 4]
add ecx, 0x24
push ecx
call fcn.00480000
add esp, 4
test eax, eax
je 0x48057a
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x44], 0
je 0x480585
jmp 0x48058a
jmp 0x48014b
mov eax, dword [ebp - 4]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x2c]
mov esp, ebp
pop ebp
ret