Function at 0x405780
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x6554d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x68], str._s_n_nOptions:_n
mov dword [ebp - 0x70], str._____s_t_s_n
mov dword [ebp - 0x74], 0x5995e4
push 0
mov eax, dword [0x598f44]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x68]
push edx
call fcn.00513540
add esp, 4
mov esi, eax
push 0x560b30
call fcn.00513540
add esp, 4
add esi, eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0
jmp 0x4057e8
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp + 0x10]
jae 0x40585a
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0040ad70
add esp, 4
test eax, eax
je 0x405830
mov edx, dword [ebp - 0x70]
push edx
call fcn.00513540
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.00513540
add esp, 4
add eax, dword [ebp - 0x5c]
add eax, esi
mov dword [ebp - 0x5c], eax
jmp 0x405858
mov eax, dword [ebp - 0x74]
push eax
call fcn.00513540
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00513540
add esp, 4
add eax, dword [ebp - 0x5c]
add eax, esi
mov dword [ebp - 0x5c], eax
jmp 0x4057df
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0051f100
add esp, 4
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x405971
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x60], edx
push 0x560b30
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0040ae60
add esp, 0xc
mov dword [ebp - 0x58], 0
jmp 0x4058a0
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp + 0x10]
jae 0x405959
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00513540
add esp, 4
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.0040ad70
add esp, 4
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40593a
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.005135d0
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0x50
jae 0x405901
jmp 0x405906
call fcn.0050cf90
mov edx, dword [ebp - 0x6c]
mov byte [ebp + edx - 0x54], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
add edx, dword [ebp - 0x5c]
push edx
call fcn.00427d10
add esp, 4
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x60]
push edx
call fcn.0040ae60
add esp, 0x10
jmp 0x405954
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0040ae60
add esp, 0xc
jmp 0x405897
mov edx, dword [ebp - 0x64]
push edx
call fcn.00407150
add esp, 4
mov eax, dword [ebp - 0x64]
push eax
call fcn.0051f0d0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ce40
mov esp, ebp
pop ebp
ret