Function at 0x5d8335
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x5d833d
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x471461
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x1c], 0
jge 0x5d8367
xor ebx, ebx
jmp 0x5d8565
xor eax, eax
push ebp
push 0x471421
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x46aa00]
call fcn.005d36c5
mov edi, eax
mov dword [ebx + 4], edi
mov eax, edi
mov dl, 1
call fcn.005d4a55
mov eax, dword [ebx + 4]
mov edx, 1
call fcn.005d375d
xor ecx, ecx
mov dl, 1
mov eax, dword [0x46c48c]
call fcn.005d7691
mov edi, eax
mov dword [ebx + 0x10], edi
mov edx, dword [ebx + 4]
mov eax, edi
call fcn.005d770d
xor ecx, ecx
mov dl, 1
mov eax, dword [0x46c2cc]
call fcn.005d702d
mov edi, eax
mov dword [ebx + 0xc], edi
mov edx, dword [ebx + 4]
mov eax, edi
call fcn.005d6e65
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x47179c
mov ecx, esi
mov dl, 1
mov eax, dword [0x42ac90]
call 0x5b1b79
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x14]
push eax
push esi
call 0x56db21
mov eax, dword [ebx + 0x18]
xor edx, edx
call 0x5aeccd
mov eax, dword [ebx + 0x18]
xor edx, edx
call 0x5aecf1
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x18]
call 0x5aed19
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x18]
call 0x5aed3d
xor ecx, ecx
mov dl, 1
mov eax, dword [0x46bbfc]
call fcn.005d5bdd
mov esi, eax
mov dword [ebx + 8], esi
mov edx, dword [ebx + 0x18]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebx + 8]
mov dl, 5
call 0x5aea71
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
call fcn.005d5d75
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x214]
mov dl, byte [0x471474]
call fcn.005d5a85
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x214]
mov edx, 1
call fcn.005d5a1d
mov eax, dword [ebx + 4]
call fcn.005d5381
mov eax, dword [ebx + 4]
xor edx, edx
call fcn.005d3785
lea ecx, [ebp - 0x18]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x14]
call fcn.005cff31
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x34]
call fcn.005d09f1
mov eax, dword [ebx + 4]
mov dl, 1
call fcn.005d3785
lea eax, [ebp - 4]
mov edx, dword [ebx + 4]
test edx, edx
je 0x5d84ce
sub edx, 0xffffffd4
mov ecx, 0x471478
call fcn.0056caad
lea eax, [ebp - 0x1c]
mov edx, dword [ebx + 8]
test edx, edx
je 0x5d84e5
sub edx, 0xffffffd4
mov ecx, 0x471488
call fcn.0056caad
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x5d8500
sub edx, 0xffffffd4
mov ecx, 0x471488
call fcn.0056caad
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x5d851b
sub edx, 0xffffffd4
mov ecx, 0x471488
call fcn.0056caad
mov eax, dword [ebp - 0x24]
push eax
push 0
mov eax, dword [0x47393c]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
mov eax, dword [ebx + 4]
call fcn.005d5015
mov eax, dword [ebx + 8]
call 0x5b5d05
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5d8565
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471468
lea eax, [ebp - 0x24]
mov edx, dword [0x46802c]
mov ecx, 3
call fcn.0056bb85
lea eax, [ebp - 0x18]
call fcn.0056ca69
lea eax, [ebp - 4]
call fcn.0056ca69
ret