Function at 0x408560
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66b577
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x726100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00428688
test eax, eax
jne 0x4085d0
push str.Fatal_Error:_MFC_initialization_failed
mov ecx, 0x733ba8
call fcn.004040f0
push eax
call fcn.00402be0
add esp, 4
mov eax, 1
jmp 0x4088cd
mov dword [ebp - 0x40], 0x69129c
mov dword [ebp - 0x18], 0x6912a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
xor eax, eax
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp edi, 3
jge 0x408677
push 6
push 0
lea ecx, [ebp - 0x40]
call fcn.00408010
lea ecx, [ebp - 0x40]
call fcn.00404330
push eax
push 0x733ae0
call fcn.00402820
add esp, 8
lea ecx, [ebp - 0x40]
push 7
push 0
call fcn.00408010
lea ecx, [ebp - 0x40]
call fcn.00404330
push eax
push 0x733ae0
call fcn.00402820
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00403ad0
or eax, 0xffffffff
jmp 0x4088cd
push 0x691338
lea ecx, [ebp - 0x7c]
call fcn.00403070
mov byte [ebp - 4], 1
call fcn.00427fa4
mov ecx, eax
test ecx, ecx
jne 0x40869d
push 0x80004005
call fcn.00404730
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x80], eax
push dword [esi + 4]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.00403110
push dword [esi + 8]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00403110
mov byte [ebp - 4], 4
cmp edi, 4
jl 0x4086f0
push dword [esi + 0xc]
lea ecx, [ebp - 0x80]
call fcn.004040a0
cmp edi, 5
jl 0x4086f0
push dword [esi + 0x10]
lea ecx, [ebp - 0x7c]
call fcn.004040a0
xor bl, bl
mov byte [ebp - 0x74], bl
cmp edi, 6
jl 0x40875e
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x75]
push 0
push eax
test ecx, ecx
mov dword [ebp - 0x70], 0x6912ac
mov eax, 0x6910b0
mov dword [ebp - 0x48], 0x6912b4
cmovne eax, ecx
lea ecx, [ebp - 0x70]
push eax
call fcn.004031d0
push 1
push 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x73
push eax
lea ecx, [ebp - 0x6c]
call fcn.00407bf0
cmp eax, 0xffffffff
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 0x74], bl
call fcn.00403b40
test bl, bl
jne 0x408780
push 6
push 0
lea ecx, [ebp - 0x40]
call fcn.00408010
lea ecx, [ebp - 0x40]
call fcn.00404330
push eax
push 0x733ae0
call fcn.00402820
add esp, 8
push dword [ebp - 0x74]
lea ecx, [ebp - 0x9c]
call fcn.00408e70
push ecx
mov esi, esp
mov dword [ebp - 0x8c], esp
mov dword [ebp - 0x74], esi
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
push eax
call fcn.00404750
add eax, 0x10
mov dword [esi], eax
mov esi, esp
mov dword [ebp - 0x74], esp
mov dword [ebp - 0x94], esi
mov edi, dword [ebp - 0x80]
add edi, 0xfffffff0
mov byte [ebp - 4], 6
push edi
call fcn.00404750
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x84]
mov esi, esp
add eax, 0xfffffff0
mov dword [ebp - 0x94], esp
push eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x90], esi
call fcn.00404750
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x88]
mov esi, esp
add eax, 0xfffffff0
mov byte [ebp - 4], 8
push eax
mov dword [ebp - 0x90], esi
call fcn.00404750
add esp, 4
lea ecx, [ebp - 0x9c]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
call fcn.0040a2b0
push 0x691138
push 0x733ae0
call fcn.00402820
push eax
call fcn.00402be0
add esp, 0xc
lea ecx, [ebp - 0x9c]
call fcn.00409440
mov edx, dword [ebp - 0x84]
or esi, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40886e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x88]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40888f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4088a7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4088c3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x40]
call fcn.00403ad0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f4722
mov esp, ebp
pop ebp
ret