Function at 0x476900
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x747722
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x85e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe4], ecx
mov ecx, dword [ebp + 8]
call fcn.00444750
movzx eax, al
test eax, eax
je 0x476947
xor eax, eax
jmp 0x476ca6
lea ecx, [ebp - 0xd8]
call fcn.00509a86
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xd8]
push edx
call fcn.00403cd0
mov ecx, eax
call fcn.0044a190
test eax, eax
je 0x4769cf
push 0
push 0x762fe4
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0050a285
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0xe4]
add ecx, 8
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 8]
mov edx, dword [eax + 0x28]
call edx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.00509b05
mov eax, dword [ebp - 0xf8]
jmp 0x476ca6
mov eax, 1
test eax, eax
je 0x476c70
call fcn.00404880
test eax, eax
je 0x4769f9
call fcn.00403cd0
mov ecx, eax
call fcn.0044a710
mov dword [ebp - 0xf4], eax
jmp 0x476a03
mov dword [ebp - 0xf4], 0
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xe0], ecx
push 0x2801
call fcn.005cd8ee
add esp, 4
mov dword [ebp - 0xdc], eax
mov edx, 1
test edx, edx
je 0x476a97
push 0
mov eax, dword [ebp - 0xe4]
add eax, 0x380
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.0050e779
add esp, 0xc
mov dword [ebp - 0xfc], eax
mov edx, dword [ebp - 0xfc]
mov eax, dword [edx]
push eax
push 0x762ff0
push 0xffffffffffffffff
push 0x2800
mov ecx, dword [ebp - 0xdc]
push ecx
call fcn.00413eb0
add esp, 0x14
mov dword [ebp - 0x104], eax
lea ecx, [ebp - 0x100]
call fcn.00404560
mov edx, dword [ebp - 0xdc]
add edx, dword [ebp - 0x104]
mov byte [edx], 0
jmp 0x476b7c
push 0x5002
call fcn.005cd8ee
add esp, 4
mov dword [ebp - 0xec], eax
push 0
mov eax, dword [ebp - 0xe4]
add eax, 0x380
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0050e779
add esp, 0xc
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
mov eax, dword [edx]
push eax
push str.Load_layout___s__Failed
push 0xffffffffffffffff
push 0x2800
mov ecx, dword [ebp - 0xec]
push ecx
call fcn.00413de0
add esp, 0x14
mov dword [ebp - 0xe8], eax
lea ecx, [ebp - 0x10c]
call fcn.00404560
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0xec]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0xe8], 0x2800
jge 0x476b6d
push 0
push 0
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0xdc]
push edx
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0xec]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0xdc]
add edx, dword [ebp - 0xe8]
mov byte [edx], 0
mov eax, dword [ebp - 0xec]
push eax
call fcn.005cd8e9
add esp, 4
cmp dword [ebp - 0xe0], 0
je 0x476bdb
push 3
push 0
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xe0]
mov eax, dword [edx + 0x2c]
call eax
movzx ecx, al
test ecx, ecx
je 0x476bdb
mov edx, dword [ebp + 4]
push edx
push 0x763020
push 0x213
push 0x763078
mov eax, dword [ebp - 0xdc]
push eax
push 0x7630c4
push 3
push 0
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xe0]
mov eax, dword [edx + 0x34]
call eax
jmp 0x476c59
mov ecx, 1
test ecx, ecx
je 0x476c59
push 0x2801
call fcn.005cd8ee
add esp, 4
mov dword [ebp - 0xf0], eax
push 0x213
push 0x7630f0
push str.SOUI::SHostWnd::OnLoadLayoutFromResourceID
mov edx, dword [ebp - 0xdc]
push edx
push 0x76313c
push 0xffffffffffffffff
push 0x2800
mov eax, dword [ebp - 0xf0]
push eax
call fcn.00413eb0
add esp, 0x20
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0xf0]
add ecx, dword [ebp - 0x114]
mov byte [ecx], 0
mov edx, dword [ebp - 0xf0]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0xf0]
push eax
call fcn.005cd8e9
add esp, 4
mov ecx, dword [ebp - 0xdc]
push ecx
call fcn.005cd8e9
add esp, 4
xor edx, edx
jne 0x4769dc
mov dword [ebp - 0x118], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.00509b05
mov eax, dword [ebp - 0x118]
jmp 0x476ca6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419933
mov esp, ebp
pop ebp
ret 4