Function at 0x404af0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x42ef6c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
push esi
push edi
mov dword [0x42ef60], eax
mov edi, 0x4292e0
mov esi, 0x104
push 0
push dword [0x433610]
push 0
push 0x8021
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 0x404e0d
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 0x404b11
mov esi, 0x3c
mov ebx, 0x429254
mov dword [ebp - 4], esi
jmp 0x404b80
push 0
push dword [0x433610]
push 0
push 0x8021
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 0x404d9b
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 [0x42ef60]
mov ecx, eax
push 0
push dword [0x433610]
inc eax
push ecx
push 0x8021
push dword [0x433614]
mov dword [0x42ef60], 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 0x404d25
mov ecx, dword [edi]
test dword [ebx], ecx
jne 0x404c3e
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
add esi, 0x3c
add edi, 8
cmp esi, 0x276
jl 0x404be0
mov esi, dword [ebp - 4]
add ebx, 0xc
add esi, 0x14
mov dword [ebp - 4], esi
cmp ebx, 0x4292d8
jl 0x404b80
call fcn.00404ed0
mov edi, eax
test edi, edi
je 0x404d1c
push 0x1000a
call fcn.00412ac8
mov esi, eax
add esp, 4
test esi, esi
jne 0x404ca7
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 0x404cf2
push esi
push str.CreateSettingsTabLayer2
push 1
mov edx, 0x217
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 0x404e2f
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push edi
test eax, eax
jle 0x404e9d
push esi
push str.CreateSettingsTabLayer2
push 1
mov edx, 0x20b
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 0x404e2f
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push edi
test eax, eax
jle 0x404e9d
push esi
push str.CreateSettingsTabLayer2
push 1
mov edx, 0x200
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 0x404e51
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 0x404e9d
push esi
push str.CreateSettingsTabLayer2
push 1
mov edx, 0x1f3
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