Function at 0x40c6d8
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x42d604
call fcn.0042c5b0
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [0x437c2c], ebx
push esi
push edi
mov edi, dword [ebp + 8]
setne al
mov byte [0x437bf0], al
cmp dword [edi + 8], ebx
je 0x40ca11
cmp word [0x437bf2], bx
je 0x40c71d
cmp byte [0x437be8], bl
mov word [0x437c04], 1
jne 0x40c724
mov word [0x437c04], bx
cmp word [0x437bf6], bx
jne 0x40c73c
cmp word [0x437bfc], bx
mov byte [0x437bea], bl
je 0x40c743
mov byte [0x437bea], 1
push ebx
push ebx
push 0x1f
call fcn.0041448a
pop ecx
call eax
mov dword [ebp - 0x14], eax
push 0x9043ffff
push 0x4b2bffff
mov dword [ebp - 4], ebx
call fcn.0040ff78
mov word [0x437bf8], ax
movsx eax, byte [0x437beb]
push eax
movsx eax, word [0x437bfe]
push eax
call fcn.0040ffc6
mov dword [0x437c14], eax
movsx eax, word [0x437bfe]
push eax
push 0x255dffff
call fcn.0040fede
mov byte [0x437bed], al
mov dword [ebp - 0x10], ebx
movsx eax, byte [0x437be9]
push dword [0x437c10]
mov byte [ebp - 4], 1
push eax
call fcn.0040ffe3
mov esi, dword [0x431038]
mov dword [0x437c24], eax
add esp, 0x20
mov al, byte [esi]
add al, 0x16
movzx eax, al
add eax, 3
and al, 0xfc
call fcn.0042c5d0
mov ecx, esp
push 0x17
push ebx
mov edx, esi
call fcn.004298e5
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f30d
mov esi, eax
movsx eax, byte [0x437bf1]
push eax
push 0xafb7ffff
call fcn.0040ff1a
push 0x9fcbffff
push 0x499ffff
mov byte [0x437be9], al
call fcn.00410092
mov dword [0x437c20], eax
push 0x2125ffff
movsx eax, word [0x437bf8]
push eax
call fcn.0040ff1a
add esp, 0x18
cmp esi, ebx
mov dword [0x437c0c], eax
jl 0x40c9c7
movsx eax, byte [0x437be9]
push eax
movsx eax, word [0x437c00]
push eax
call fcn.00410016
pop ecx
mov byte [0x437be8], al
pop ecx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.0040f1db
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0042c4e1
mov ecx, eax
call fcn.0040f0f9
mov esi, eax
mov al, byte [0x437c00]
add al, byte [0x437c24]
push 0x3817ffff
push 0x459fffff
add byte [0x437bef], al
call fcn.0040ffe3
add word [0x437bf6], ax
push 0xac05ffff
movsx eax, word [0x437bfc]
push eax
call fcn.0040ff4b
add esp, 0x10
cmp si, bx
mov dword [0x437c08], eax
je 0x40c9c7
cmp dword [0x437c18], ebx
jne 0x40c8de
cmp dword [0x437c10], ebx
mov word [0x437c04], bx
je 0x40c8e7
mov word [0x437c04], 1
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.0040f1db
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0042c4e1
mov ecx, eax
call fcn.0040f036
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov byte [0x437bee], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp + 0xc], ebx
mov dword [0x437c20], eax
je 0x40c9c3
movsx eax, byte [0x437bed]
push eax
movsx eax, word [0x437bfa]
push eax
call fcn.0040ff78
add byte [0x437bf0], al
mov eax, dword [0x437c28]
push 0xe12dffff
and eax, 0x4bfffff
push dword [0x437c20]
mov dword [0x437c08], eax
call fcn.0040ffc6
push dword [ebp + 0x18]
add dword [0x437c1c], eax
lea eax, [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.0040ca25
mov byte [ebp + 0xb], al
mov eax, dword [ebp + 0xc]
add esp, 0x20
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x40c99f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40c9af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x14], 0x80010106
je 0x40c9be
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [ebp + 0xb]
jmp 0x40ca13
mov byte [ebp - 4], 1
or al, 0xff
push 0xfd0dffff
sub al, byte [0x437bea]
mov byte [0x437bed], al
movsx eax, byte [0x437bee]
push eax
call fcn.0040ff78
mov eax, dword [ebp - 0x10]
pop ecx
cmp eax, ebx
pop ecx
mov dword [0x437c08], 0x2181ffff
mov byte [ebp - 4], bl
je 0x40ca02
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x14], 0x80010106
je 0x40ca11
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret