Function at 0x4021d5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
and eax, 0xffff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x408040
call fcn.00401bb6
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
mov dword [ebp - 0x10], eax
jmp 0x402512
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov ebx, eax
push 3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
or ebx, eax
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
or ebx, eax
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
or ebx, eax
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
or ebx, eax
je 0x4024ad
push 0x43
call fcn.00403b8e
add esp, 4
cmp eax, 0x1400000
jbe 0x4023c8
call fcn.00402da9
push 0x4083e0
push str.Directory
push 0x40a188
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
mov ebx, 0x40a198
mov esi, 0x40a1a0
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
xor ecx, ecx
cmp eax, 1
sete cl
dec ecx
sub esi, ebx
and ecx, esi
add ecx, ebx
push ecx
push 0x40a1a8
push 0x40a1b4
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
mov ebx, 0x40a1c4
mov esi, 0x40a1cc
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
xor ecx, ecx
cmp eax, 1
sete cl
dec ecx
sub esi, ebx
and ecx, esi
add ecx, ebx
push ecx
push 0x40a1d4
push 0x40a1e0
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
mov ebx, 0x40a1f0
mov esi, 0x40a1f8
push 3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
xor ecx, ecx
cmp eax, 1
sete cl
dec ecx
sub esi, ebx
and ecx, esi
add ecx, ebx
push ecx
push 0x40a200
push 0x40a20c
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
mov ebx, 0x40a21c
mov esi, 0x40a224
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
xor ecx, ecx
cmp eax, 1
sete cl
dec ecx
sub esi, ebx
and ecx, esi
add ecx, ebx
push ecx
push 0x40a22c
push 0x40a238
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
mov ebx, 0x40a248
mov esi, str.False
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
xor ecx, ecx
cmp eax, 1
sete cl
dec ecx
sub esi, ebx
and ecx, esi
add ecx, ebx
push ecx
push 0x40a258
push 0x40a268
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
push 0
mov eax, dword [0x408a44]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x408a3c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x4023ea
push 0x40
push 0xa
call fcn.00404790
add esp, 4
push eax
push 0xd
call fcn.00404790
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x530
mov eax, dword [0x408a3c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
push eax
call fcn.00402537
add esp, 4
push 0
mov eax, dword [0x408a3c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 8]
push eax
call fcn.00402752
add esp, 4
push 3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x40246d
push 0x40
push 0xa
call fcn.00404790
add esp, 4
push eax
push 0xf
call fcn.00404790
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40248f
push 0x40
push 0xa
call fcn.00404790
add esp, 4
push eax
push 0xe
call fcn.00404790
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40252b
push 0x40
push 0xa
call fcn.00404790
add esp, 4
push eax
push 0xc
call fcn.00404790
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40252b
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.00401410
add esp, 0x10
jmp 0x40252b
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
push 2
push 0xa1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40252b
cmp dword [ebp - 0x10], 1
je 0x402220
cmp dword [ebp - 0x10], 2
je 0x4024d4
jmp 0x4024ef
xor eax, eax
jmp 0x402532
pop edi
pop esi
pop ebx
leave
ret