Function at 0x402eb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41bada
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov al, byte [esp + 0x20]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea edx, [ebp + 4]
xor esi, esi
mov edi, 0x424d3c
or ecx, 0xffffffff
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], esi
mov dword [edx + 8], esi
mov dword [edx + 0xc], esi
mov dword [esp + 0x10], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x424d3c
mov ecx, edx
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 cl, byte [esp + 0x30]
lea ebx, [ebp + 0x14]
mov edi, 0x424d3c
xor eax, eax
mov byte [ebx], cl
or ecx, 0xffffffff
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov dword [esp + 0x1c], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x424d3c
mov ecx, ebx
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 al, byte [esp + 0x30]
lea edx, [ebp + 0x24]
mov edi, 0x424d3c
or ecx, 0xffffffff
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], esi
mov dword [edx + 8], esi
mov dword [edx + 0xc], esi
mov byte [esp + 0x1c], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x424d3c
mov ecx, edx
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_]
lea ecx, [ebp + 0x38]
mov byte [esp + 0x1c], 2
mov byte [ebp + 0x34], 0
mov byte [ebp + 0x35], 0
call fcn.00411d60
lea ecx, [ebp + 0x4c]
mov byte [esp + 0x1c], 3
call fcn.00415a30
mov cl, byte [esp + 0x30]
mov edx, dword [esp + 0x24]
mov byte [ebp + 0x60], cl
push 1
push edx
mov ecx, ebp
mov byte [esp + 0x24], 4
mov dword [ebp], 0x41e4c4
call fcn.004032f0
mov edi, dword [esp + 0x2c]
cmp edi, esi
je 0x402ff5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebx
push edi
mov dword [esp + 0x38], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x402ff5
mov esi, dword [esp + 0x2c]
mov ecx, edi
mov edi, dword [ebx + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
xor esi, esi
mov byte [ecx + eax], 0
mov edi, dword [esp + 0x28]
cmp edi, esi
je 0x40303a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [ebp + 4]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40303a
mov esi, dword [esp + 0x28]
mov edi, dword [ebp + 8]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], ebx
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10