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

Disassembly:
push 0xffffffffffffffff
push 0x403bff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00402350
mov dword [esp + 0x14], eax
mov byte [eax + 0x45], 1
mov eax, dword [esp + 0x14]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x14]
mov dword [eax], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax + 8], eax
mov dword [esp + 0x18], ecx
cmp dword [ebx + 0xc], ecx
mov dword [esp + 0xec], ecx
mov dword [esp + 0x20], ecx
jbe 0x402e30
mov dword [esp + 0x1c], ecx
jmp 0x402c10
xor ecx, ecx
jmp 0x402c10
mov eax, dword [ebx + 0x2c]
mov edx, dword [esp + 0x1c]
lea edi, [edx + eax]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [eax]
push edx
push ecx
mov ecx, edi
call dword [sym.imp.MSVCP71.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__::erase_unsigned_int__unsigned_int_]
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x20]
mov ebp, dword [eax + ecx*4]
push 0x7c
push ebp
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x402e08
lea edx, [esi + 1]
push 0x7c
push edx
call dword [sym.imp.MSVCR71.dll_strchr]
add esp, 8
test eax, eax
mov dword [esp + 0x30], eax
je 0x402e08
sub eax, esi
inc eax
push eax
push esi
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xf0], 1
call fcn.00402000
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
je 0x402cb1
add eax, 0xc
push eax
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
jne 0x402cb1
lea eax, [esp + 0x24]
jmp 0x402cbd
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x2c]
mov esi, dword [eax]
cmp esi, dword [esp + 0x14]
jne 0x402de5
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0xf4], 2
call fcn.00403520
add esp, 8
test al, al
je 0x402dc7
mov ecx, dword [esp + 0x48]
test ecx, ecx
jbe 0x402d28
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x402d0c
lea eax, [esp + 0x38]
cmp byte [ecx + eax - 1], 0x5c
jne 0x402d28
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
dec ecx
push eax
push ecx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP71.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__::erase_unsigned_int__unsigned_int_]
sub esp, 0x1c
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
sub esp, 0x1c
lea eax, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
mov byte [esp + 0x128], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0xe4]
push ecx
mov byte [esp + 0x128], 2
call fcn.00402170
add esp, 0x3c
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xf0], 4
call fcn.00401be0
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xf4], 5
call fcn.00402620
mov esi, dword [eax]
lea ecx, [esp + 0x74]
mov byte [esp + 0xec], 4
call fcn.00401b90
lea ecx, [esp + 0xac]
mov byte [esp + 0xec], 2
call fcn.00401b90
lea ecx, [esp + 0x34]
mov byte [esp + 0xec], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, dword [esp + 0x14]
jne 0x402de5
mov byte [edi + 0x1c], 1
jmp 0x402df6
add esi, 0x28
push esi
mov ecx, edi
call dword [sym.imp.MSVCP71.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__]
mov ebp, dword [esp + 0x30]
inc ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0xec], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push ebp
mov ecx, edi
call dword [sym.imp.MSVCP71.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__]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0xc]
inc eax
add edx, 0x44
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
jb 0x402c06
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0xf8], 0xffffffff
call fcn.00402ab0
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0xe8]
add esp, 4
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xe0
ret