Function at 0x1005e330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100df278
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1010bb90]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
mov edi, ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], ecx
push eax
mov ecx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
call fcn.10002300
lea ecx, [esp + 0x10]
push ecx
push ecx
push eax
mov dword [esp + 0x6c], 0
mov esi, dword [esi + 0x10]
push esi
lea edx, [ebp + 0x14]
push edx
lea eax, [ebp + 0xc]
push eax
lea ecx, [esp + 0x48]
push ecx
push edi
call fcn.1005ee00
add esp, 0x1c
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.100b05ca
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x28], edx
test eax, eax
je 0x1005e427
push 0
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.100afbd0
mov eax, dword [edi + 4]
test eax, eax
jbe 0x1005e405
cmp eax, 0xffffffff
jae 0x1005e405
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x2c]
and esi, edi
call fcn.100afbf8
test esi, esi
je 0x1005e427
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp byte [ebp + 0x10], 0
mov edx, dword [ebp + 0xc]
jne 0x1005e46a
test edx, edx
je 0x1005e461
mov eax, dword [edx + 0x20]
cmp dword [eax], 0
je 0x1005e44b
mov ecx, dword [edx + 0x30]
cmp dword [ecx], 0
jle 0x1005e44b
mov eax, dword [eax]
movzx eax, byte [eax]
jmp 0x1005e457
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
mov edx, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x1005e461
mov byte [ebp + 0x11], al
jmp 0x1005e466
xor edx, edx
mov dword [ebp + 0xc], edx
mov byte [ebp + 0x10], 1
cmp byte [ebp + 0x18], 0
mov ecx, dword [ebp + 0x14]
jne 0x1005e4a2
test ecx, ecx
je 0x1005e4a0
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x1005e48e
mov esi, dword [ecx + 0x30]
cmp dword [esi], 0
jle 0x1005e48e
mov eax, dword [eax]
movzx eax, byte [eax]
jmp 0x1005e49b
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x1005e4a2
xor ecx, ecx
test edx, edx
jne 0x1005e4d2
test ecx, ecx
je 0x1005e4d6
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x30]
cmp dword [esp + 0x14], ecx
je 0x1005e4df
cmp dword [esp + 0x10], 0
jne 0x1005e4df
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
jmp 0x1005e4e2
test ecx, ecx
je 0x1005e4aa
mov eax, dword [esp + 0xc]
or dword [eax], 1
jmp 0x1005e4ae
or dword [eax], 2
mov eax, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.100bfcbc
mov esp, ebp
pop ebp
ret 0x20