Function at 0x411670
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418c45
mov eax, dword fs:[0]
push eax
sub esp, 0x170
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 - 0x1c]
push eax
xor edi, edi
push ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x411a45
mov dword [ebp - 0x14], edi
lea esp, [esp]
test byte [0x424890], 1
jne 0x4116fe
or dword [0x424890], 1
mov dword [ebp - 4], 0
lea edx, [ebp + 0xb]
push edx
push 0x424868
call fcn.00403ec0
mov byte [ebp - 4], 0
push 0x4194c0
call fcn.00415b37
add esp, 4
or esi, 0xffffffff
mov dword [ebp - 4], esi
jmp 0x411701
or esi, 0xffffffff
xor eax, eax
cmp byte [0x424210], al
jne 0x411792
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edi*4]
push ecx
lea ecx, [ebp - 0x11c]
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 - 0x11c]
push edx
lea eax, [ebp - 0x24]
push eax
mov ebx, 0x424868
call fcn.00403f50
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x11c]
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 [0x424870]
je 0x411762
cmp esi, 0x42486c
je 0x411768
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebp - 0x20]
cmp edi, ebx
je 0x411789
test esi, esi
jne 0x411779
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x411784
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x24]
jmp 0x41178c
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
or esi, 0xffffffff
cmp eax, 0x4b
ja case.0x4117a2.1
movzx ecx, byte [eax + 0x411a6c]
jmp dword [ecx*4 + 0x411a5c]
cmp byte [0x424210], 0
je 0x411a22
push str._layered
lea ecx, [ebp - 0x100]
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 - 0x100]
push edx
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], 4
mov dword [ebp - 0x28], 0x37
mov byte [ebp - 4], 5
lea eax, [ebp - 0x44]
push eax
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], 6
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xa8], ecx
mov byte [ebp - 4], 7
lea edx, [ebp - 0xc4]
push edx
lea eax, [ebp - 0x160]
push eax
push 0x424868
call fcn.00403520
mov byte [ebp - 4], 5
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 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 - 0x100]
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 [0x424210], 0
je 0x4119af
push str._parent
lea ecx, [ebp - 0x154]
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], 0xa
lea ecx, [ebp - 0x154]
push ecx
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], 0xb
mov dword [ebp - 0x68], 0x3d
mov bl, 0xc
mov byte [ebp - 4], bl
lea edx, [ebp - 0x84]
push edx
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], 0xd
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xe4]
push ecx
lea edx, [ebp - 0x16c]
push edx
push 0x424868
call fcn.00403520
mov byte [ebp - 4], bl
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], 0xa
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 - 0x154]
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 [0x424210], 0
je 0x4119df
push str._message
lea ecx, [ebp - 0x138]
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 - 0x138]
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], 0x12
mov dword [ebp - 0x48], 0x4b
mov bl, 0x13
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x64]
push ecx
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], 0x14
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x88], edx
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x178]
push ecx
push 0x424868
call fcn.00403520
mov byte [ebp - 4], bl
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 byte [ebp - 4], 0x11
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 - 0x138]
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.0x4117a2.1
add edi, 1
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
jge 0x411a2c
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edi*4]
push ecx
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.0x4117a2.1
mov edx, dword [ebp + 8]
mov dword [edx + 8], esi
jmp case.0x4117a2.1
add edi, 1
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
jge 0x411a2c
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + edi*4]
push eax
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.0x4117a2.1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], esi
cmp byte [0x424210], 0
je 0x411a2c
mov byte [0x424210], 0
jmp 0x4116c0
mov edx, dword [ebp + 8]
mov dword [edx + 4], 1
add edi, 1
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
jl 0x4116c0
mov eax, dword [ebp - 0x18]
push eax
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 4