Function at 0x404170
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
push esi
push edi
mov dword [0x42ef64], 0x803b
mov edi, 0x4292e0
mov esi, 0x104
push 0
push dword [0x433610]
push 0
push 0x801f
push dword [0x433614]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x1e
push 0x32
push 0x14
push esi
push 0x54010000
push dword [edi]
push str.Static
push 0
call ebx
test eax, eax
je 0x40448d
push 0
push dword [0x42f3d4]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
add esi, 0x3c
add edi, 8
cmp esi, 0x26c
jl 0x404191
mov esi, 0x3c
mov ebx, 0x429314
mov dword [ebp - 4], esi
jmp 0x404200
push 0
push dword [0x433610]
push 0
push 0x801f
push dword [0x433614]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x14
push 0xfa
push esi
push 0xa
push 0x54010000
push dword [ebx - 4]
push str.Static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x40441b
push 0
push dword [0x42f3d4]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, 0x4292e4
mov esi, 0x10e
mov edi, edi
mov eax, dword [0x42ef64]
mov ecx, eax
push 0
push dword [0x433610]
inc eax
push ecx
push 0x801f
push dword [0x433614]
mov dword [0x42ef64], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x14
push 0x32
push dword [ebp - 4]
push esi
push 0x54010003
push 0x4283d8
push str.Button
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x4043a5
mov ecx, dword [edi]
test dword [ebx], ecx
jne 0x4042be
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
add esi, 0x3c
add edi, 8
cmp esi, 0x276
jl 0x404260
mov esi, dword [ebp - 4]
add ebx, 0xc
add esi, 0x14
mov dword [ebp - 4], esi
cmp ebx, 0x42935c
jl 0x404200
call fcn.00404550
mov edi, eax
test edi, edi
je 0x40439c
push 0x1000a
call fcn.00412ac8
mov esi, eax
add esp, 4
test esi, esi
jne 0x404327
push str.Memory_allocation_error_in_log_file_n
call fcn.00412f3c
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push edi
test eax, eax
jle 0x404372
push esi
push str.CreateSettingsTabLayer0
push 1
mov edx, 0x15f
mov byte [esi + 0xffff], 0
mov ecx, str...GuiSettings.cpp
call fcn.00401280
add esp, 0x10
push esi
call fcn.00412a90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Error__d_in_swprintf_s_n
call fcn.00412f3c
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00412a90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
push 0x1000a
lea edi, [eax + 0x1e]
call fcn.00412ac8
mov esi, eax
add esp, 4
test esi, esi
je 0x4044af
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push edi
test eax, eax
jle 0x40451d
push esi
push str.CreateSettingsTabLayer0
push 1
mov edx, 0x153
mov byte [esi + 0xffff], 0
mov ecx, str...GuiSettings.cpp
call fcn.00401280
add esp, 0x10
push esi
call fcn.00412a90
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
push 0x1000a
lea edi, [eax + 0x1e]
call fcn.00412ac8
mov esi, eax
add esp, 4
test esi, esi
je 0x4044af
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push edi
test eax, eax
jle 0x40451d
push esi
push str.CreateSettingsTabLayer0
push 1
mov edx, 0x148
mov byte [esi + 0xffff], 0
mov ecx, str...GuiSettings.cpp
call fcn.00401280
add esp, 0x10
push esi
call fcn.00412a90
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
push 0x1000a
lea edi, [eax + 0x1e]
call fcn.00412ac8
mov esi, eax
add esp, 4
test esi, esi
jne 0x4044d1
push str.Memory_allocation_error_in_log_file_n
call fcn.00412f3c
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push edi
test eax, eax
jle 0x40451d
push esi
push str.CreateSettingsTabLayer0
push 1
mov edx, 0x13b
mov byte [esi + 0xffff], 0
mov ecx, str...GuiSettings.cpp
call fcn.00401280
add esp, 0x10
push esi
call fcn.00412a90
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Error__d_in_swprintf_s_n
call fcn.00412f3c
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00412a90
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret