Function at 0x1005e410
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x398
mov esi, esp
mov dword [esi + 0x380], ebp
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x384], esp
mov dword [esi + 0x390], 0xffffffff
mov dword [esi + 0x38c], 0x10064b50
lea eax, [esi + 0x388]
mov ecx, dword fs:[0]
add edx, 0x80
mov dword [esi + 0x388], ecx
mov dword fs:[0], eax
mov byte [esi + 0xb], 1
mov dword [esi + 0x390], 0
lea eax, [esi + 0x30]
mov dword [esi + 0xc], edx
push edx
push eax
call fcn.100b2790
add esp, 8
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
test ecx, ecx
je 0x1005e4dc
cmp dword [ecx + 0xc], 0
je 0x1005e4dc
mov dword [esi + 0x390], 2
mov dword [esi + 0xc], ecx
call fcn.100b4ac0
mov ebx, dword [esi + 0xc]
mov edi, dword [ebx + 4]
test edi, edi
je 0x1005e4bf
lea eax, [edi + 0x11]
push eax
push 0xff
push dword [ebx]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [edi + 1]
mov dword [ebx + 0xc], 0
mov ecx, eax
and eax, 0xfffffff8
shr ecx, 3
sub eax, ecx
cmp edi, 8
cmovb eax, edi
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0xc]
mov cl, 1
mov edx, dword [eax]
lea eax, [edx + 8]
mov dword [esi + 0xc], edx
mov dword [esi + 0x20], eax
xor eax, eax
lock cmpxchg byte [edx + 8], cl
je 0x1005e50e
mov byte [esi + 7], 1
mov dword [esi + 0x390], 1
push dword [esi + 0x20]
call fcn.101cba30
add esp, 4
mov eax, dword [0x10284a30]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x1005e727
mov byte [esi + 7], 1
mov dword [esi + 0x390], 1
call fcn.101cb9a0
xor al, 1
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0xc]
movzx eax, byte [eax + 9]
test al, al
jne 0x1005e73d
mov eax, dword [ebp + 0xc]
mov cl, 1
mov edx, dword [eax + 4]
lea eax, [edx + 8]
mov dword [esi + 0x1c], eax
xor eax, eax
lock cmpxchg byte [edx + 8], cl
mov dword [esi + 0x28], edx
je 0x1005e57d
mov byte [esi + 8], 1
mov dword [esi + 0x390], 3
push dword [esi + 0x1c]
call fcn.101cba30
mov edx, dword [esi + 0x28]
add esp, 4
mov eax, dword [0x10284a30]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x1005e775
mov byte [esi + 8], 1
mov dword [esi + 0x390], 3
call fcn.101cb9a0
mov edx, dword [esi + 0x28]
xor al, 1
mov dword [esi + 0x14], eax
movzx eax, byte [edx + 9]
test al, al
jne 0x1005e788
mov eax, dword [esi + 0xc]
mov byte [esi + 9], 1
mov dword [esi + 0x390], 4
lea ecx, [esi + 0x68]
add eax, 0x40
push eax
push ecx
call fcn.10118020
add esp, 8
movzx eax, byte [esi + 0x68]
mov ecx, dword [ebp + 8]
cmp al, 3
jne 0x1005e5f9
mov eax, dword [esi + 0xc]
test byte [eax + 0xf0], 1
je 0x1005e7c0
mov word [ecx], 0x503
jmp 0x1005e619
movsd xmm0, qword [esi + 0x78]
movsd xmm2, qword [esi + 0x69]
movsd xmm1, qword [esi + 0x71]
movsd qword [ecx + 0x10], xmm0
movsd qword [ecx + 9], xmm1
movsd qword [ecx + 1], xmm2
mov byte [ecx], al
mov bl, 1
cmp byte [esi + 0x14], 0
mov dword [esi + 0x14], ebx
jne 0x1005e652
mov eax, dword [0x10284a30]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x1005e652
mov byte [esi + 8], bl
mov dword [esi + 0x390], 3
call fcn.101cb9a0
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0x28]
test al, al
jne 0x1005e652
mov byte [ecx + 9], 1
mov ecx, dword [esi + 0x1c]
xor eax, eax
xchg byte [ecx], al
cmp al, 2
jne 0x1005e678
mov byte [esi + 8], bl
mov dword [esi + 0x390], 3
push dword [esi + 0x1c]
call fcn.101cbad0
mov ebx, dword [esi + 0x14]
add esp, 4
cmp byte [esi + 0x24], 0
jne 0x1005e6ac
mov eax, dword [0x10284a30]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x1005e6ac
mov byte [esi + 7], bl
mov dword [esi + 0x390], 1
call fcn.101cb9a0
mov ebx, dword [esi + 0x14]
test al, al
jne 0x1005e6ac
mov eax, dword [esi + 0xc]
mov byte [eax + 9], 1
mov ecx, dword [esi + 0x20]
xor eax, eax
xchg byte [ecx], al
cmp al, 2
jne 0x1005e6d2
mov byte [esi + 7], bl
mov dword [esi + 0x390], 1
push dword [esi + 0x20]
call fcn.101cbad0
mov ebx, dword [esi + 0x14]
add esp, 4
test bl, bl
je 0x1005e710
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1005e6fe
mov edi, dword [esi + 0x38]
mov eax, dword [eax + 0x10]
mov edx, dword [esi + 0x34]
lea ecx, [esi + 0x3c]
mov byte [esi + 0xb], bl
mov dword [esi + 0x390], 0
push edi
push edx
push ecx
call eax
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x390], 0xffffffff
call fcn.10041850
mov eax, dword [esi + 0x388]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0xc]
movzx eax, byte [eax + 9]
test al, al
je 0x1005e547
mov eax, dword [esi + 0x20]
mov dword [esi + 0x390], 8
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x24]
mov byte [esi + 0x6c], al
lea eax, [esi + 0x68]
push 0x101d819c
push 0x101d88d8
push eax
push 0x2b
push 0x101d88e8
call fcn.101ccb80
add esp, 0x14
jmp 0x1005eb34
mov dword [esi + 0x14], 0
movzx eax, byte [edx + 9]
test al, al
je 0x1005e5b6
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x390], 7
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x14]
mov byte [esi + 0x6c], al
lea eax, [esi + 0x68]
push 0x101d81ac
push 0x101d8914
push eax
push 0x2b
push 0x101d88e8
call fcn.101ccb80
add esp, 0x14
jmp 0x1005eb34
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1005e803
mov ecx, dword [esi + 0xc]
movsd xmm0, qword [eax + 4]
lea eax, [esi + 0x68]
mov byte [esi + 9], 1
add ecx, 0x160
movsd qword [esi + 0x6c], xmm0
mov dword [esi + 0x68], ecx
push eax
call fcn.10133910
add esp, 4
cmp byte [eax + 0xe4], 1
mov ecx, dword [ebp + 8]
jne 0x1005e803
mov word [ecx], 0x303
jmp 0x1005e619
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x3c], 0
je 0x1005e816
mov word [ecx], 0x103
jmp 0x1005e619
lea edx, [eax + 0xf0]
test byte [edx], 1
jne 0x1005e5f2
mov edi, dword [eax + 0xf4]
mov dword [esi + 0x2c], edx
mov edx, eax
lea eax, [edi + 2]
mov ecx, eax
shr ecx, 0x1f
mov dword [edx + 0xf0], ecx
mov dword [edx + 0xf4], eax
mov eax, dword [edx + 0xb8]
mov ecx, dword [edx + 0x154]
mov byte [esi + 9], 1
lea edx, [esi + 0x290]
push eax
push ecx
mov dword [esi + 0x18], edi
push edi
push edx
call fcn.1012e000
add esp, 0x10
mov eax, dword [ebp + 0x10]
movzx ebx, byte [ebp + 0x14]
cmp byte [eax + 0x6c], 5
jne 0x1005e88a
mov dword [esi + 0x294], 0
mov dword [esi + 0x290], 1
lea edi, [esi + 0x158]
push 0x88
push dword [ebp + 0x10]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm0, qword [esi + 0x30]
movsd xmm1, qword [esi + 0x38]
movzx eax, bl
mov byte [esi + 0x13], 1
mov dword [esi + 0x390], 5
lea ecx, [esi + 0x58]
movsd qword [esi + 0x60], xmm1
movsd qword [esi + 0x58], xmm0
push eax
push ecx
push edi
push dword [esi + 0x18]
lea eax, [esi + 0x68]
push eax
call fcn.10118620
add esp, 0x14
mov edi, dword [esi + 0x68]
mov ebx, dword [esi + 0x6c]
movsd xmm0, qword [esi + 0x70]
movsd xmm2, qword [esi + 0x78]
movsd xmm1, qword [esi + 0x80]
mov eax, edi
movsd qword [esi + 0x40], xmm0
movsd qword [esi + 0x48], xmm2
movsd qword [esi + 0x50], xmm1
xor eax, 3
or eax, ebx
jne 0x1005e949
movsd xmm0, qword [esi + 0x50]
mov eax, dword [ebp + 8]
movsd xmm2, qword [esi + 0x40]
movsd xmm1, qword [esi + 0x48]
lea ecx, [esi + 0x290]
mov byte [esi + 9], 0
mov dword [esi + 0x390], 4
movsd qword [eax + 0x10], xmm0
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm2
call fcn.10060f20
jmp 0x1005eb20
lea eax, [esi + 0x88]
lea ecx, [esi + 0x200]
push 0x90
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm1, qword [esi + 0x48]
movsd xmm0, qword [esi + 0x40]
mov eax, dword [esi + 0xc]
movsd qword [esi + 0x1f0], xmm1
movsd xmm1, qword [esi + 0x50]
movsd qword [esi + 0x1e8], xmm0
add eax, 0x160
mov dword [esi + 0x18], eax
movsd qword [esi + 0x1f8], xmm1
mov dword [esi + 0x1e4], ebx
mov ebx, dword [esi + 0x35c]
mov dword [esi + 0x1e0], edi
push 0xf0
lea eax, [esi + 0x290]
push eax
lea edi, [esi + 0x68]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esi + 0xa], 1
mov dword [esi + 0x390], 6
push edi
push ebx
push dword [esi + 0x18]
lea eax, [esi + 0x158]
push eax
call fcn.101302f0
add esp, 0x10
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0xc]
add eax, 0xc
lea ebx, [edi + 0x10]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x1e0]
push 0xb0
push eax
lea eax, [esi + 0x68]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [edi + 0xe8]
mov byte [esi + 0xa], 0
push eax
push ebx
lea eax, [esi + 0x158]
push eax
push dword [esi + 0x18]
lea eax, [esi + 0x68]
push eax
push dword [esi + 0x2c]
call fcn.100d3d80
add esp, 0x18
mov ecx, eax
cmp al, 0xc
jne 0x1005ead7
mov eax, dword [esi + 0xc]
lea edx, [esi + 0x158]
inc dword [eax + 0x1a8]
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x18], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x2c], ecx
lea ecx, [esi + 0x68]
lock inc dword [eax]
jle 0x1005eb34
mov byte [esi + 0xa], 0
push edx
push eax
push ecx
call fcn.10116bf0
add esp, 0xc
mov edx, dword [esi + 0x28]
lock inc dword [edx]
jle 0x1005eb34
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x70]
mov ecx, dword [ebp + 8]
movsd xmm0, qword [esi + 0x68]
mov byte [esi + 8], 0
mov dword [esi + 0x390], 3
inc eax
mov dword [ecx + 0xc], edi
movsd qword [ecx + 4], xmm0
mov dword [ecx + 0x10], edx
movzx edx, byte [esi + 0x14]
cmp dword [esi + 0x18], eax
setbe byte [ecx + 0x14]
mov byte [ecx], 4
mov ecx, dword [esi + 0x1c]
call fcn.1002a170
movzx edx, byte [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov byte [esi + 7], 0
mov dword [esi + 0x390], 1
call fcn.1002a170
jmp 0x1005e710
lea eax, [esi + 0x158]
mov byte [esi + 0xa], 0
push eax
mov byte [esi + 0x18], cl
call fcn.101338f0
add esp, 4
lea ecx, [esi + 0x68]
mov eax, dword [esi + 0x160]
movsd xmm0, qword [esi + 0x158]
mov byte [esi + 0xa], 0
mov dword [esi + 0x70], eax
movsd qword [esi + 0x68], xmm0
push ecx
call fcn.10133760
movzx ecx, byte [esi + 0x18]
add esp, 4
mov eax, dword [ebp + 8]
mov byte [eax], 3
mov byte [eax + 1], cl
xor ebx, ebx
cmp byte [esi + 0x14], 0
mov dword [esi + 0x14], ebx
je 0x1005e624
jmp 0x1005e652
ud2