Function at 0x470640
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2e55
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov al, byte [ecx]
mov byte [edi], al
movq qword [edi + 8], xmm0
movzx eax, byte [edi]
dec eax
cmp eax, 7
ja case.default.0x47033c
jmp dword [eax*4 + 0x470620]
mov esi, dword [ecx + 8]
push 8
movlpd qword [ebp - 0x24], xmm0
call fcn.00450e28
mov ebx, eax
lea eax, [ebp - 0x19]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
push 0x38
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00450e28
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebx], eax
push dword [ebp - 0x30]
mov ecx, ebx
mov byte [ebp - 4], 1
push eax
mov eax, dword [esi]
push dword [eax + 4]
call fcn.00469de0
mov ecx, eax
mov eax, dword [ebx]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov esi, dword [ebx]
mov dword [ebx + 4], eax
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x4703fa
mov ecx, dword [edx]
cmp byte [ecx + 0xd], 0
jne 0x4703d1
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4703c5
mov dword [esi], edx
mov edx, dword [ebx]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x4703ec
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x4703e1
mov eax, dword [ebp - 0x14]
mov dword [edx + 8], ecx
mov dword [edi + 0xc], eax
jmp 0x4705f2
mov dword [esi], esi
mov eax, dword [ebx]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xc], eax
jmp 0x4705f2
mov esi, dword [ecx + 8]
push 0xc
movlpd qword [ebp - 0x18], xmm0
call fcn.00450e28
mov ecx, eax
add esp, 4
lea eax, [ebp - 0x19]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 4], 2
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], edx
cmp eax, edx
je 0x4704be
mov esi, edx
sub esi, eax
sar esi, 4
push esi
call fcn.0047e0f0
mov ebx, eax
shl esi, 4
mov eax, dword [ebp - 0x28]
add esi, ebx
mov dword [ebp - 0x20], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], eax
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
mov byte [ebp - 4], 4
nop word [eax + eax]
push esi
mov ecx, ebx
call fcn.004702f0
add ebx, 0x10
add esi, 0x10
mov dword [ebp - 0x3c], ebx
cmp esi, edi
jne 0x4704a0
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
mov dword [ecx + 4], ebx
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
jmp case.default.0x47033c
push dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.004719c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jmp case.default.0x47033c
mov al, byte [ecx + 8]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x18]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jmp case.default.0x47033c
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jmp case.default.0x47033c
movsd xmm0, qword [ecx + 8]
movsd qword [edi + 8], xmm0
jmp case.default.0x47033c
mov esi, dword [ecx + 8]
push 0x20
mov dword [ebp - 0x34], esi
movlpd qword [ebp - 0x18], xmm0
call fcn.00450e28
mov ebx, eax
add esp, 4
lea eax, [ebp - 0x1a]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 6
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, ecx
je 0x4705da
sub ecx, eax
mov dword [ebp - 0x28], ecx
cmp ecx, 0x1000
jb 0x4705a0
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x470615
push eax
call fcn.00450e28
add esp, 4
test eax, eax
je 0x47061a
mov ecx, dword [ebp - 0x28]
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4705b6
test ecx, ecx
je 0x4705b4
push ecx
call fcn.00450e28
mov ecx, dword [ebp - 0x28]
add esp, 4
mov esi, eax
jmp 0x4705b6
xor esi, esi
push ecx
push dword [ebp - 0x2c]
mov dword [ebx], esi
lea eax, [esi + ecx]
mov dword [ebx + 4], esi
push esi
mov dword [ebx + 8], eax
call fcn.00495210
sub esi, dword [ebp - 0x2c]
add esp, 0xc
add esi, dword [ebp - 0x30]
mov dword [ebx + 4], esi
mov esi, dword [ebp - 0x34]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x10], eax
mov cl, byte [esi + 0x18]
mov byte [ebx + 0x18], cl
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret 4
call fcn.00401d50
call fcn.004984ff
nop
inc ebx
add eax, dword [edi]
or al, 4
inc edi
add ah, cl
add al, 0x47
add al, ch
add al, 0x47
add bh, bh
add al, 0x47
add bh, bh
add al, 0x47
add byte [eax], dl
add eax, 0x51f0047
inc edi
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd870
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4f4164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00450e28
mov esi, eax
add esp, 4
test esi, esi
je 0x4706a0
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00452464
add esp, 4
mov dword [esi + 4], eax
jmp 0x4706a2
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret