Function at 0x1004c4f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x90]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x10056740
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea ecx, [esi + 0x20]
mov dword [ecx + 0x60], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx + 0x50], xmm0
movdqa xmmword [ecx + 0x40], xmm0
movdqa xmmword [ecx + 0x30], xmm0
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
mov dword [esi + 8], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0xc], fcn.10010790
mov dword [esi + 0x14], edx
mov dword [eax + 8], 1
lea eax, [esi + 4]
mov dword [eax], edx
push eax
call fcn.1003dc2a
mov dword [esi + 0x98], 2
lea ecx, [esi + 4]
push 0x10128108
call fcn.100512d8
mov dword [esi + 0x10], eax
mov al, byte [ebp + 0x14]
lea edx, [esi + 0x84]
lea ecx, [esi + 3]
mov byte [ecx], 0
lea edi, [esi + 0x14]
lea ebx, [esi + 8]
movzx eax, al
push edx
push edi
push ebx
push dword [esi + 0x10]
push ecx
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push dword [ecx + 4]
lea ecx, [esi + 4]
push ecx
push eax
push dword [esi + 0x1c]
lea eax, [ebp + 0xc]
push eax
call fcn.1004b7a0
add esp, 0x2c
test al, al
je 0x1004c694
mov ecx, dword [ebp + 0x20]
cmp byte [ecx + 0xb], 0
js 0x1004c5ee
xor eax, eax
mov byte [ecx], al
mov byte [ecx + 0xb], al
jmp 0x1004c5fa
mov eax, dword [ecx]
mov byte [eax], 0
mov dword [ecx + 4], 0
cmp byte [esi + 3], 0
je 0x1004c636
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx]
mov edi, dword [eax + 0x1c]
mov dword [esi + 0x98], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov dword [esi + 0x98], 2
mov ecx, ebx
push 0x2d
call edi
movsx eax, al
mov ecx, dword [ebp + 0x20]
push eax
call fcn.100572d0
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx]
mov edi, dword [eax + 0x1c]
mov dword [esi + 0x98], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov dword [esi + 0x98], 2
mov ecx, ebx
push 0x30
call edi
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x14]
lea ecx, [edi - 1]
cmp edx, ecx
jae 0x1004c680
mov ecx, edx
not ecx
add ecx, edi
lea ebx, [edx + ecx]
cmp byte [edx], al
jne 0x1004c680
inc edx
dec ecx
jne 0x1004c676
mov edx, ebx
mov dword [esi + 0x98], 2
mov ecx, dword [ebp + 0x20]
push edi
push edx
call fcn.1004c7b0
lea eax, [ebp + 0x10]
lea ecx, [ebp + 0xc]
push eax
call fcn.10039350
mov ecx, dword [ebp + 8]
test al, al
je 0x1004c6ad
mov eax, dword [ebp + 0x1c]
or byte [eax], 2
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov edi, dword [esi + 4]
xor eax, eax
dec eax
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x1004c6dc
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov dword [esi + 0x98], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
mov edi, dword [esi + 8]
mov dword [esi + 8], 0
test edi, edi
je 0x1004c70d
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x98], 0xffffffff
call dword [section..00cfg]
mov dword [esi + 0x98], 0
push edi
call ecx
add esp, 4
mov eax, dword [esi + 0x90]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c