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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b04b2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4d8c20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x4bf4f8
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [edi]
mov ecx, dword [edx + 4]
push ebx
lea esi, [edi + 4]
push esi
add ecx, edi
mov dword [ebp - 0x10], 1
call fcn.00416870
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.00416980
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x4de0f8]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov byte [ebp - 4], 3
mov edx, dword [ebp + 0xc]
lea ecx, [ebx + 0x22]
push 0x40
mov ebx, esi
call fcn.0041d480
test eax, eax
jne 0x41c5f7
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi + 0xc]
add eax, edi
or ecx, 2
cmp dword [eax + 0x38], 0
jne 0x41c53a
or ecx, 4
and ecx, 0x17
mov dword [eax + 0xc], ecx
mov eax, dword [eax + 0x10]
and eax, ecx
je 0x41c5f7
mov esi, 1
test al, 4
je 0x41c589
call fcn.0048f2ae
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x24]
mov edi, eax
mov dword [ebp + 0xc], str.ios_base::badbit_set
call fcn.004752d7
push 0x4d00ec
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], vtable.std::ios_base::failure.0
call fcn.00478c1f
test al, 2
je 0x41c5c2
call fcn.0048f2ae
mov edi, eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp + 0xc], str.ios_base::failbit_set
call fcn.004752d7
push 0x4d00ec
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], vtable.std::ios_base::failure.0
call fcn.00478c1f
call fcn.0048f2ae
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x24]
mov edi, eax
mov dword [ebp + 0xc], str.ios_base::eofbit_set
call fcn.004752d7
push 0x4d00ec
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], vtable.std::ios_base::failure.0
call fcn.00478c1f
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8