Function at 0x40356c
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x374
mov eax, dword [0x40b004]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x5b
push eax
mov byte [esp + 0x20], al
mov esi, ecx
lea eax, [esp + 0x21]
mov dword [esp + 0x18], edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push 8
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
push 0x80
mov eax, dword [eax + 0x20]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x27c]
push eax
push 0x6d
push dword [0x40b3a4]
call ebx
mov eax, dword [edi + 4]
push dword [eax + 0x58]
lea eax, [esp + 0x27c]
push eax
lea eax, [esp + 0x80]
push 0x100
push eax
call fcn.00401cd5
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x10
xor eax, eax
mov word [esp + 0x276], ax
lea eax, [esp + 0x78]
push eax
push 0x424
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp dword [ecx + 0x78], edx
je 0x403635
cmp dword [ecx + 0x8c], edx
je 0x40363d
cmp dword [ecx + 0x84], edx
je 0x403679
push 0x7f01
push edx
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x403673
xor ecx, ecx
push ecx
push eax
push 0x170
push 0x87
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 5
push 0x87
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp dword [ecx + 0x78], edx
je 0x403978
cmp dword [ecx + 0x8c], edx
jne 0x403978
xor eax, eax
cmp dword [ecx + 0x7c], edx
setne al
push eax
push 0x404
push esi
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
mov ecx, dword [ecx]
call fcn.00407294
test eax, eax
js 0x403971
push 5
push 0x40b
xor ecx, ecx
push esi
mov byte [esp + 0x1b], cl
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, 5
push eax
push 0x404
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0x14], 0
je 0x403738
mov al, byte [esp + 0x45]
test al, al
je 0x4037ff
sub al, byte [esp + 0x19]
mov byte [esp + 0xf], al
jne 0x4037ff
push 1
push 0x404
push esi
call dword [sym.imp.USER32.dll_CheckDlgButton]
xor eax, eax
push eax
push 0x404
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x7c], 1
mov al, byte [esp + 0x44]
test al, al
je 0x4037ff
sub al, byte [esp + 0x18]
mov byte [esp + 0xf], al
jne 0x4037ff
push 0x100
lea eax, [esp + 0x7c]
push eax
push 0x98
push dword [0x40b3a4]
call ebx
lea eax, [esp + 0x78]
push eax
push 0x423
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x100
lea eax, [esp + 0x7c]
push eax
push 0x99
push dword [0x40b3a4]
call ebx
lea eax, [esp + 0x78]
push eax
push 0x42c
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
push eax
push 0x422
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
xor eax, eax
push eax
push 0x415
push esi
call edi
push eax
call ebx
xor eax, eax
push eax
push 0x404
push esi
call edi
push eax
call ebx
xor eax, eax
push eax
push 0x40a
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
xor eax, eax
push eax
push 0x409
push esi
call edi
push eax
call ebx
jmp 0x403963
push 0x100
lea eax, [esp + 0x7c]
push eax
push 0x81
push dword [0x40b3a4]
call ebx
lea eax, [esp + 0x78]
push eax
push 0x423
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor ecx, ecx
cmp dword [esp + 0x14], ecx
je 0x403865
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x7c], ecx
jne 0x403865
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4038ac
cmp word [eax], cx
je 0x4038ac
push 0x80
lea eax, [esp + 0x27c]
push eax
push 0x73
push dword [0x40b3a4]
call ebx
push dword [esp + 0x68]
jmp 0x40388d
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4038ac
cmp word [eax], cx
je 0x4038ac
push 0x80
lea eax, [esp + 0x27c]
push eax
push 0x73
push dword [0x40b3a4]
call ebx
push dword [esp + 0x64]
lea eax, [esp + 0x27c]
push eax
lea eax, [esp + 0x80]
push 0x100
push eax
call fcn.00401cd5
add esp, 0x10
jmp 0x4038c3
push 0x100
lea eax, [esp + 0x7c]
push eax
push 0x97
push dword [0x40b3a4]
call ebx
lea eax, [esp + 0x78]
push eax
push 0x422
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp byte [esp + 0xf], 0xa
ja 0x403951
mov eax, dword [esp + 0x10]
xor ecx, ecx
push 0x80
cmp dword [eax + 0x7c], ecx
lea eax, [esp + 0x27c]
push eax
je 0x4038f7
push 0x78
jmp 0x4038fc
push 0x94
push dword [0x40b3a4]
call ebx
movzx eax, byte [esp + 0xf]
push eax
lea eax, [esp + 0x27c]
push eax
lea eax, [esp + 0x80]
push 0x100
push eax
call fcn.00401cd5
add esp, 0x10
lea eax, [esp + 0x78]
mov ebx, 0x415
push eax
push ebx
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp dword [eax + 0x7c], ecx
je 0x403963
cmp byte [esp + 0x18], cl
jne 0x403963
push ecx
push ebx
jmp 0x403959
xor eax, eax
push eax
push 0x415
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esp + 0x18]
call fcn.0040771c
jmp 0x403a25
xor eax, eax
jmp 0x403a36
lea eax, [esp + 0x78]
push 0x100
push eax
cmp dword [ecx + 0x84], edx
je 0x403a04
push 0x7f
push dword [0x40b3a4]
call ebx
lea eax, [esp + 0x78]
push eax
push 0x423
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esp + 0x14], 0
lea eax, [esp + 0x78]
push 0x100
push eax
je 0x4039c0
push 0xa4
jmp 0x4039c5
push 0xa3
push dword [0x40b3a4]
call ebx
lea eax, [esp + 0x78]
push eax
push 0x422
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x100
lea eax, [esp + 0x7c]
push eax
push 0xa7
push dword [0x40b3a4]
call ebx
lea eax, [esp + 0x78]
push eax
push 0x42c
jmp 0x403a1b
push 0x95
push dword [0x40b3a4]
call ebx
lea eax, [esp + 0x78]
push eax
push 0x423
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x37c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004097cb
mov esp, ebp
pop ebp
ret 4