Function at 0x402a20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40312f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x844
mov eax, dword [0x406024]
xor eax, esp
push ebp
push esi
mov esi, dword [esp + 0x860]
push edi
mov edi, dword [esp + 0x860]
lea ecx, [esp + 0x30]
mov dword [esp + 0x84c], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0xc], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
test esi, esi
mov ebp, 1
mov dword [esp + 0x858], ebp
jne 0x402a96
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov dword [esp + 0xc], ebp
jmp 0x402b70
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x20], ecx
push edx
mov dword [esp + 0x28], ecx
push esi
mov dword [esp + 0x30], ecx
call fcn.004028a0
mov ebp, dword [esp + 0x30]
add esp, 8
test ebp, ebp
je 0x402aed
push 0x400
lea eax, [esp + 0x50]
push ebp
push eax
call dword [sym.imp.MSVCR71.dll_mbstowcs]
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const__]
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
je 0x402b05
push 0x8000
push 0
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402b17
push 0x8000
push 0
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402b29
push 0x8000
push 0
push eax
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x402b3b
push 0x8000
push 0
push eax
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x402b4d
push 0x8000
push 0
push eax
call esi
test ebp, ebp
je 0x402b5b
push 0x8000
push 0
push ebp
call esi
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x858], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [esp + 0x850]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x844]
pop ebp
xor ecx, esp
call fcn.00402d2b
add esp, 0x850
ret