Function at 0x401d90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418751
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 0x4022e9
mov dword [ebp - 0x10], edi
lea esp, [esp]
test byte [0x424860], 1
jne 0x401e1e
or dword [0x424860], 1
mov dword [ebp - 4], 0
lea edx, [ebp - 0x19]
push edx
push 0x424838
call fcn.00403e60
mov byte [ebp - 4], 0
push 0x419470
call fcn.00415b41
add esp, 4
or esi, 0xffffffff
mov dword [ebp - 4], esi
jmp 0x401e21
or esi, 0xffffffff
xor eax, eax
cmp byte [0x423c38], al
jne 0x401eb2
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, 0x424838
call fcn.00403ef0
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 [0x424840]
je 0x401e82
cmp esi, 0x42483c
je 0x401e88
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebp - 0x20]
cmp edi, ebx
je 0x401ea9
test esi, esi
jne 0x401e99
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x401ea4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x24]
jmp 0x401eac
or eax, 0xffffffff
mov edi, dword [ebp - 0x10]
or esi, 0xffffffff
cmp eax, 0xac
ja case.0x401ec4.1
movzx ecx, byte [eax + 0x402318]
jmp dword [ecx*4 + 0x402300]
cmp byte [0x423c38], 0
je 0x4022b8
push 0x41a83c
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], 0x8e
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 0x424838
call fcn.004034c0
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 0x402241
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], 0x94
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 0x424838
call fcn.004034c0
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 0x402241
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], 0x95
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 0x424838
call fcn.004034c0
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 0x40224d
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], 0x9d
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 0x424838
call fcn.004034c0
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 0x402283
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], 0xac
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 0x424838
call fcn.004034c0
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.0x401ec4.1
mov dword [0x424798], 1
jmp case.0x401ec4.1
add edi, 1
cmp edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
jge 0x4022c2
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.0x401ec4.1
mov dword [0x4247a0], esi
mov dword [0x424724], esi
jmp case.0x401ec4.1
add edi, 1
cmp edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
jge 0x4022c2
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 [0x42479c], eax
cmp byte [0x423c38], 0
je 0x4022c2
mov byte [0x423c38], 0
jmp 0x401de0
mov dword [0x424794], 1
add edi, 1
cmp edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
jl 0x401de0
cmp dword [0x424798], 0
je 0x4022df
call fcn.00401ac0
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