Function at 0x40b540
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc40
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc3c], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00419530
add esp, 0xc
lea eax, [esp + 0x210]
push 0x828
push 0
push eax
call fcn.00419530
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [esp + 0x14]
add esp, 0xc
push 0xfa
push eax
push 0x3f3
push dword [0x434884]
call esi
push 0xfa
lea eax, [esp + 0x214]
push eax
push 0x3f4
push dword [0x434884]
call esi
push 0xfa
lea eax, [esp + 0xa3c]
push eax
push 0x3f5
push dword [0x434884]
call esi
cmp word [esp + 8], 0
je 0x40b80a
cmp word [esp + 0x210], 0
je 0x40b80a
push 4
lea eax, [esp + 0x214]
push 0x429ea0
push eax
call fcn.004140af
add esp, 0xc
test eax, eax
jne 0x40b624
push eax
push str.Error
push str.This_process_cannot_be_shielded.
jmp 0x40b816
push 0x103
lea eax, [esp + 0x214]
push eax
lea eax, [esp + 0x420]
push 0x104
push eax
call fcn.00413ff1
lea eax, [esp + 0x428]
push 0x2e
push eax
call fcn.00412feb
add esp, 0x18
test eax, eax
je 0x40b65e
xor ecx, ecx
mov word [eax], cx
push str._GUI
lea eax, [esp + 0x41c]
push 0x104
push eax
call fcn.00413bbd
add esp, 0xc
xor esi, esi
lea ebx, [ebx]
lea eax, [esp + 0xa38]
push eax
push dword [esi*8 + 0x4294a0]
call fcn.00413ce8
add esp, 8
test eax, eax
je 0x40b6a6
inc esi
cmp esi, 6
jl 0x40b680
jmp 0x40b81e
mov eax, dword [esi*8 + 0x4294a4]
mov dword [esp + 0x620], eax
cmp esi, 6
jge 0x40b81e
lea eax, [esp + 8]
mov dword [esp + 0x624], 1
push eax
push dword [0x42f1b4]
mov dword [esp + 0x630], 0
call dword [sym.imp.mbae_api.dll__MbaeAddShieldApplication_8]
mov esi, eax
cmp esi, 2
jne 0x40b701
push 0
push str.Error
push str.The_application_you_are_trying_to_shield_is_already_shielded.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40b724
cmp esi, 3
jne 0x40b71c
push 0
push str.Error
push str.The_application_you_are_trying_to_shield_has_an_invalid_file_name.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40b724
test esi, esi
je 0x40b7f4
push 0x1000a
call fcn.00412ac8
mov edi, eax
add esp, 4
test edi, edi
jne 0x40b765
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, esi
pop edi
pop esi
mov ecx, dword [esp + 0xc3c]
xor ecx, esp
call fcn.0041297c
mov esp, ebp
pop ebp
ret
push 0x4283c8
push 0xffff
push edi
call fcn.00412a74
add esp, 0xc
push esi
test eax, eax
jle 0x40b7bd
push edi
push str.AddShieldApplication
push 1
mov edx, 0x3bb
mov byte [edi + 0xffff], 0
mov ecx, str...GuiTab.cpp
call fcn.00401280
add esp, 0x10
push edi
call fcn.00412a90
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xc3c]
xor ecx, esp
call fcn.0041297c
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 edi
call fcn.00412a90
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xc3c]
xor ecx, esp
call fcn.0041297c
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc3c]
xor ecx, esp
call fcn.0041297c
mov esp, ebp
pop ebp
ret
push 0
push str.Error
push str.The_application_cannot_have_any_blank_data_fields.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0xc44]
mov eax, 9
pop edi
pop esi
xor ecx, esp
call fcn.0041297c
mov esp, ebp
pop ebp
ret