Function at 0x5e04f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xfb685f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100c068]
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 - 0x28], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x28], 0
mov dword [edi], 0xfd4f40
mov dword [edi + 0x50], 0xfd4f00
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x28], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], 0xfd4f58
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.005cfa50
mov eax, dword [esi + 0x30]
lea ebx, [edi + 4]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 2
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 3
push eax
call fcn.005e2d20
mov ecx, eax
add esp, 4
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
cmp eax, vtable.std::ctype_wchar_t_.0
jne 0x5e0706
lea eax, [ecx + 0x18]
mov byte [ebp - 0x14], 0x20
push eax
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push 1
lea eax, [ebp - 0x14]
movlpd qword [ebp - 0x20], xmm0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00f48c60
movzx ecx, word [ebp - 0x18]
add esp, 0x14
test eax, eax
mov edx, 0xffff
cmovs ecx, edx
movzx eax, cx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x5e060b
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x5e060b
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], ax
jne 0x5e062c
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.005cf9d0
mov dword [ebp - 4], 5
mov eax, dword [edi]
push 8
mov dword [ebp - 0x24], ebx
mov eax, dword [eax + 4]
mov dword [edi + eax], 0xfd58b4
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [ebx], 0xfd58f4
call fcn.00f499a4
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 6
call fcn.00f4862c
mov dword [esi + 4], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 4]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0xc], eax
add esp, 4
lea eax, [ebx + 0x14]
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebx + 0xc]
mov dword [ecx], 0
mov ecx, dword [ebx + 0x1c]
mov dword [ecx], 0
mov ecx, dword [ebx + 0x2c]
mov dword [ecx], 0
mov dword [ebx], 0xfd58b8
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 4
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.00f49793
mov esp, ebp
pop ebp
ret 8
push 0x20
call edx
movzx eax, ax
jmp 0x5e05e9