Function at 0x404d04
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433d56
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x445bbc]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x445bbc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x17], 0
call fcn.00401078
cmp byte [eax], 0
je 0x404d6b
mov ecx, dword [eax + 0x38]
mov ecx, dword [ecx]
mov edx, dword [eax + 0x24]
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], ecx
mov byte [eax + 0x48], 1
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
and dword [esp + 0xa0], 0
call fcn.00401078
mov esi, eax
cmp byte [esi], 0
je 0x404f8e
push 0x439098
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.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__::operator_char_const__]
cmp byte [esi + 0x48], 0
je 0x404f8e
mov ebx, dword [esi + 0x38]
mov ecx, dword [esi + 0x24]
add esi, 0x40
mov eax, dword [esi]
test eax, eax
je 0x404db9
cmp eax, ecx
je 0x404dbf
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esi + 4], ebx
je 0x404f8e
call fcn.0040ffc2
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.0040ffef
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x404dec
lea eax, [esp + 0x24]
push eax
call fcn.00401078
lea ebx, [esp + 0x1c]
mov ecx, eax
call fcn.00411f52
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x404d7d
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x10
pop ecx
mov byte [esp + 0xa0], 1
cmp dword [ebx + 0x70], ecx
jb 0x404e28
mov esi, dword [ebx + 0x5c]
jmp 0x404e2b
lea esi, [ebx + 0x5c]
cmp dword [ebx + 0x8c], ecx
jb 0x404e38
mov edx, dword [ebx + 0x78]
jmp 0x404e3b
lea edx, [ebx + 0x78]
cmp dword [ebx + 0x38], ecx
jb 0x404e45
mov eax, dword [ebx + 0x24]
jmp 0x404e48
lea eax, [ebx + 0x24]
cmp dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
jae 0x404e56
lea ecx, [esp + 0x24]
lea edi, [esp + 0x3c]
push edi
mov edi, dword [esp + 0x20]
push esi
push edx
push eax
mov esi, edi
call fcn.00404aed
or byte [esp + 0x17], al
cmp byte [esp + 0x17], 1
jne 0x404f77
cmp dword [ebx], 1
jne 0x404efb
cmp byte [ebp + 8], 0
jne 0x404efb
cmp byte [edi + 0x242], 0
jne 0x404efb
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0xa0], 2
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x404ead
lea eax, [esp + 0x40]
lea ecx, [esp + 0x58]
push ecx
push dword [esp + 0x54]
push eax
call fcn.00415c74
add esp, 0xc
cmp dword [ebx + 0x1c], 0x10
jb 0x404eca
mov ebx, dword [ebx + 8]
jmp 0x404ecd
add ebx, 8
cmp dword [esp + 0x70], 0x10
mov ecx, dword [esp + 0x5c]
jae 0x404edc
lea ecx, [esp + 0x5c]
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x404eeb
lea eax, [esp + 0x24]
push ebx
push ecx
push eax
mov ebx, edi
call fcn.00405305
lea ecx, [esp + 0x58]
jmp 0x404f69
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0xa0], 3
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x404f1c
lea eax, [esp + 0x40]
lea ecx, [esp + 0x74]
push ecx
push dword [esp + 0x54]
push eax
call fcn.00415c74
add esp, 0xc
cmp dword [ebx + 0x1c], 0x10
jb 0x404f39
mov ebx, dword [ebx + 8]
jmp 0x404f3c
add ebx, 8
cmp dword [esp + 0x8c], 0x10
mov ecx, dword [esp + 0x78]
jae 0x404f4e
lea ecx, [esp + 0x78]
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x404f5d
lea eax, [esp + 0x24]
push ebx
push ecx
push eax
call fcn.00405488
lea ecx, [esp + 0x74]
mov byte [esp + 0xa0], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa0], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x404d7d
mov ecx, edi
call fcn.00405226
or dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0042898c
mov esp, ebp
pop ebp
ret 4