Function at 0x404630
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x42ef64]
push ebx
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
push esi
push edi
mov dword [0x42ef6c], eax
mov edi, 0x4292e0
mov esi, 0x104
push 0
push dword [0x433610]
push 0
push 0x8020
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 0x40494d
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 0x404651
mov esi, 0x3c
mov ebx, 0x429364
mov dword [ebp - 4], esi
jmp 0x4046c0
push 0
push dword [0x433610]
push 0
push 0x8020
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 0x4048db
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 [0x42ef6c]
mov ecx, eax
push 0
push dword [0x433610]
inc eax
push ecx
push 0x8020
push dword [0x433614]
mov dword [0x42ef6c], 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 0x404865
mov ecx, dword [edi]
test dword [ebx], ecx
jne 0x40477e
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
add esi, 0x3c
add edi, 8
cmp esi, 0x276
jl 0x404720
mov esi, dword [ebp - 4]
add ebx, 0xc
add esi, 0x14
mov dword [ebp - 4], esi
cmp ebx, 0x4293c4
jl 0x4046c0
call fcn.00404a10
mov edi, eax
test edi, edi
je 0x40485c
push 0x1000a
call fcn.00412ac8
mov esi, eax
add esp, 4
test esi, esi
jne 0x4047e7
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 0x404832
push esi
push str.CreateSettingsTabLayer1
push 1
mov edx, 0x1bb
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 0x40496f
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push edi
test eax, eax
jle 0x4049dd
push esi
push str.CreateSettingsTabLayer1
push 1
mov edx, 0x1af
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 0x40496f
push 0x4283c8
push 0xffff
push esi
call fcn.00412a74
add esp, 0xc
push edi
test eax, eax
jle 0x4049dd
push esi
push str.CreateSettingsTabLayer1
push 1
mov edx, 0x1a4
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 0x404991
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 0x4049dd
push esi
push str.CreateSettingsTabLayer1
push 1
mov edx, 0x197
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