Function at 0x414110
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dadea
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x51b170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [esi], 0x4fdb38
mov dword [esi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
lea edi, [esi + 4]
mov eax, dword [esi]
push 0
push edi
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.0041a6d0
mov dword [ebp - 4], 2
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + esi - 4], eax
mov ecx, edi
call fcn.0041a610
lea eax, [edi + 4]
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov byte [edi + 0x48], 0
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov byte [edi + 0x3d], 0
mov dword [edi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi + 0x4c], 0
mov eax, dword [0x526478]
mov dword [edi + 0x40], eax
mov eax, dword [0x52647c]
mov dword [edi + 0x44], eax
mov dword [edi + 0x38], 0
mov eax, dword [ebp + 0xc]
push 0x40
or eax, 2
mov byte [ebp - 4], 3
push eax
push dword [ebp + 8]
call fcn.004867db
add esp, 0xc
test eax, eax
je 0x4142c1
push 1
push eax
mov ecx, edi
call fcn.00418400
mov eax, dword [edi + 0x34]
mov byte [ebp - 4], 4
mov ebx, dword [eax + 4]
mov ecx, ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
call fcn.0041e860
add esp, 4
mov dword [ebp + 0xc], eax
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
call edx
test al, al
je 0x414295
mov dword [edi + 0x38], 0
jmp 0x4142a2
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [edi + 0x38], eax
call fcn.0041a5b0
mov byte [ebp - 4], 6
test ebx, ebx
je 0x4142e2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
test eax, eax
je 0x4142e2
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
jmp 0x4142e2
mov eax, dword [esi]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, esi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00403430
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10