Function at 0x410ec0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x568246
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x2c], 0x80004005
mov dword [esp + 0x15c], ebp
mov dword [esp + 0x24], ebp
push 0x5ed920
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 1
call fcn.0040f8c0
mov eax, dword [0x5e5cb8]
mov bl, 2
cmp eax, ebp
mov byte [esp + 0x15c], bl
jne 0x410f7a
cmp dword [0x5e5cb4], ebp
jne 0x410f7a
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, ebp
mov byte [esp + 0x15c], 3
je 0x410f4d
push ebp
mov ecx, eax
call fcn.00414650
jmp 0x410f4f
xor eax, eax
mov dword [0x5e5cb4], eax
mov eax, dword [0x5cebb0]
push eax
push 0x406a50
mov ecx, 0x5eafa0
mov byte [esp + 0x164], bl
call fcn.00406600
mov dword [0x5e5cb8], 1
mov ecx, dword [esp + 0x10]
mov edi, dword [0x5e5cb4]
mov byte [esp + 0x15c], 1
mov edx, dword [ecx]
call dword [edx + 8]
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.0047a2a0
test eax, eax
jl 0x411322
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x411326
mov dword [esp + 0x10], ebp
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x5cf3e8
push eax
mov byte [esp + 0x168], 4
call dword [ecx + 0xc]
cmp eax, ebp
mov dword [esp + 0x2c], eax
jl 0x41130c
cmp dword [esp + 0x10], ebp
je 0x41130c
mov eax, dword [0x5eb324]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [esp + 0x50]
push 0x104
push ecx
push eax
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x50]
push str...StormNCStormNC_I.dll
push edx
call edi
lea ebp, [esi + 0x2e8]
push 0x14
lea eax, [esp + 0x54]
push ebp
push eax
call fcn.00405520
mov eax, dword [0x5eb324]
add esp, 0xc
lea ecx, [esp + 0x50]
push 0x104
push ecx
push eax
call ebx
lea edx, [esp + 0x50]
push str...StormNCStormNC_R.dll
push edx
call edi
lea ebx, [esi + 0x2fc]
push 0x14
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.00405520
mov cl, byte [esp + 0x37]
mov edi, dword [esp + 0x170]
add esp, 0xc
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], edi
push 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov edi, str.UID
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x15c], 5
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.UID
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00410650
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x15c], 6
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov byte [esp + 0x15c], 5
push 1
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.gcid
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.gcid
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x411149
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x411149
mov eax, dword [esi + 0x1c]
push eax
call fcn.00565bb4
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov edi, str.stormver
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.stormver
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
lea eax, [esp + 0x40]
mov ecx, esi
push eax
call fcn.00410830
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x15c], 7
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x160], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.stormncver
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.stormncver
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov edi, 0x5cf3b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5cf3b4
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x411221
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 0
lea ebp, [eax + 1]
lea ebx, [ebp + 0xc]
mov byte [esp + 0x15c], 8
push ebx
mov dword [esp + 0x38], ebx
call sub.MFC42.DLL_operatornew
mov ecx, ebx
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add ebp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x30], esi
rep stosb byte es:[edi], al
xor edi, edi
mov word [esi + 6], bp
mov dword [esi], edi
mov word [esi + 4], 0x66
mov cx, word [esp + 0x1c]
lea eax, [esi + 8]
mov word [esi + 6], cx
mov ecx, dword [esp + 0x18]
cmp ecx, edi
jne 0x411294
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov eax, dword [esp + 0x10]
push ebx
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4112c8
mov dword [esp + 0x10], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4112c8
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp esi, edi
mov dword [esp + 0x10], edi
je 0x4112d9
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4112fe
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4112f5
cmp al, 0xff
je 0x4112f5
dec al
mov byte [ecx], al
jmp 0x4112fe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
xor ebp, ebp
mov eax, dword [esp + 0x10]
mov byte [esp + 0x15c], 1
cmp eax, ebp
je 0x411322
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
pop edi
pop esi
cmp eax, ebp
pop ebp
mov byte [esp + 0x150], 0
pop ebx
je 0x41133c
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x154]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x150
ret 4