Function at 0x401db0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4187b1
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
push ebx
push esi
push edi
mov eax, dword [0x423040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
push eax
xor edi, edi
push ecx
mov dword [ebp - 0x14], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x402303
mov dword [ebp - 0x10], edi
lea esp, [esp]
test byte [0x424864], 1
jne 0x401e3e
or dword [0x424864], 1
mov dword [ebp - 4], 0
lea edx, [ebp - 0x19]
push edx
push 0x42483c
call fcn.00403ec0
mov byte [ebp - 4], 0
push 0x419470
call fcn.00415b37
add esp, 4
or esi, 0xffffffff
mov dword [ebp - 4], esi
jmp 0x401e41
or esi, 0xffffffff
xor eax, eax
cmp byte [0x423c38], al
jne 0x401ed2
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edi*4]
push ecx
lea ecx, [ebp - 0x19c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], 2
lea edx, [ebp - 0x19c]
push edx
lea eax, [ebp - 0x24]
push eax
mov ebx, 0x42483c
call fcn.00403f50
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x19c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [ebp - 0x24]
test esi, esi
mov ebx, dword [0x424844]
je 0x401ea2
cmp esi, 0x424840
je 0x401ea8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebp - 0x20]
cmp edi, ebx
je 0x401ec9
test esi, esi
jne 0x401eb9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x401ec4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x24]
jmp 0x401ecc
or eax, 0xffffffff
mov edi, dword [ebp - 0x10]
or esi, 0xffffffff
cmp eax, 0xa8
ja case.0x401ee4.1
movzx ecx, byte [eax + 0x402330]
jmp dword [ecx*4 + 0x402318]
cmp byte [0x423c38], 0
je 0x4022d2
push 0x41a84c
lea ecx, [ebp - 0x1b8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ebx, 3
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x1b8]
push edx
lea ecx, [ebp - 0x84]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 4
mov dword [ebp - 0x68], 0x8b
mov byte [ebp - 4], 5
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0xc8], ecx
mov byte [ebp - 4], 7
lea edx, [ebp - 0xe4]
push edx
lea eax, [ebp - 0x23c]
push eax
push 0x42483c
call fcn.00403520
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x84]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x1b8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [0x423c38], 0
je 0x402261
push str._debug
lea ecx, [ebp - 0x180]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ebx, 0xa
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x28], 0x91
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x104]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x230]
push edx
push 0x42483c
call fcn.00403520
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x104]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x180]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [0x423c38], 0
je 0x402261
push str._Debug
lea ecx, [ebp - 0x1d4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], 0x11
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0xa4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x88], 0x92
mov bl, 0x13
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x124]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x108], edx
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0x42483c
call fcn.00403520
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x124]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xa4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x1d4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [0x423c38], 0
je 0x40226d
push str._maindlg
lea ecx, [ebp - 0x20c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], 0x18
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 0x19
mov dword [ebp - 0xa8], 0x9a
mov bl, 0x1a
mov byte [ebp - 4], bl
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x164]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x148], ecx
mov byte [ebp - 4], 0x1c
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x248]
push eax
push 0x42483c
call fcn.00403520
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x164]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x20c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [0x423c38], 0
je 0x40229d
push str._event
lea ecx, [ebp - 0x1f0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], 0x1f
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 0x20
mov dword [ebp - 0x48], 0xa8
mov bl, 0x21
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x144]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 0x22
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x128], edx
mov byte [ebp - 4], 0x23
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x224]
push ecx
push 0x42483c
call fcn.00403520
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x144]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x1f0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp case.0x401ee4.1
mov dword [0x4247c0], 1
jmp case.0x401ee4.1
add edi, 1
cmp edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
jge 0x4022dc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + edi*4]
push edx
call dword [sym.imp.MSVCR80.dll__wtoi64]
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je case.0x401ee4.1
mov dword [0x4247c8], esi
jmp case.0x401ee4.1
add edi, 1
cmp edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
jge 0x4022dc
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + edi*4]
push eax
call dword [sym.imp.MSVCR80.dll__wtoi64]
add esp, 4
mov dword [0x4247c4], eax
cmp byte [0x423c38], 0
je 0x4022dc
mov byte [0x423c38], 0
jmp 0x401e00
mov dword [0x4247bc], 1
add edi, 1
cmp edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
jl 0x401e00
cmp dword [0x4247c0], 0
je 0x4022f9
call fcn.00401ae0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret