Function at 0x411330
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418b85
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 0x411705
mov dword [ebp - 0x14], edi
lea esp, [esp]
test byte [0x42488c], 1
jne 0x4113be
or dword [0x42488c], 1
mov dword [ebp - 4], 0
lea edx, [ebp + 0xb]
push edx
push 0x424864
call fcn.00403e60
mov byte [ebp - 4], 0
push 0x4194c0
call fcn.00415b41
add esp, 4
or esi, 0xffffffff
mov dword [ebp - 4], esi
jmp 0x4113c1
or esi, 0xffffffff
xor eax, eax
cmp byte [0x424210], al
jne 0x411452
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, 0x424864
call fcn.00403ef0
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 [0x42486c]
je 0x411422
cmp esi, 0x424868
je 0x411428
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebp - 0x20]
cmp edi, ebx
je 0x411449
test esi, esi
jne 0x411439
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x411444
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x24]
jmp 0x41144c
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
or esi, 0xffffffff
cmp eax, 0x4b
ja case.0x411462.1
movzx ecx, byte [eax + 0x41172c]
jmp dword [ecx*4 + 0x41171c]
cmp byte [0x424210], 0
je 0x4116e2
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 0x424864
call fcn.004034c0
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 0x41166f
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 0x424864
call fcn.004034c0
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 0x41169f
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 0x424864
call fcn.004034c0
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.0x411462.1
add edi, 1
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
jge 0x4116ec
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.0x411462.1
mov edx, dword [ebp + 8]
mov dword [edx + 8], esi
jmp case.0x411462.1
add edi, 1
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
jge 0x4116ec
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.0x411462.1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], esi
cmp byte [0x424210], 0
je 0x4116ec
mov byte [0x424210], 0
jmp 0x411380
mov edx, dword [ebp + 8]
mov dword [edx + 4], 1
add edi, 1
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
jl 0x411380
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