Function at 0x7871ac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x7871b4
push ebx
push esi
xor eax, eax
push ebp
push 0x787673
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x78760c
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 0xc]
call fcn.007b43e0
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x787600
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x90]
mov edx, dword [ebp - 0xc]
call fcn.007b43e0
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x10]
call fcn.007b385c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xc], 1
jne 0x787509
mov eax, dword [ebp - 0x18]
call fcn.007b157c
cmp dword [eax + 0xc], 0
je 0x787509
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov byte [eax + 0x35], 1
mov eax, dword [ebp - 0x18]
call fcn.007b157c
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x50b3e8]
call fcn.00408918
test al, al
je 0x787322
mov eax, dword [ebp - 0x1c]
call fcn.00766220
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x787362
mov dl, 1
mov eax, dword [0x50aa64]
call fcn.00514148
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x1c]
push eax
mov eax, ebx
call fcn.00514a68
xor ecx, ecx
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0x44]
cmp dword [0x9979c4], 0
je 0x78731d
mov esi, dword [0x990550]
mov esi, dword [esi]
mov eax, dword [0x9979c4]
call esi
mov dword [ebp - 0x1c], eax
mov edx, ebx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
call fcn.00408650
jmp 0x787362
mov dword [ebp - 0x1c], ebx
jmp 0x787362
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x50aa64]
call fcn.00408918
test al, al
je 0x787362
cmp dword [0x9979c4], 0
je 0x787362
mov ebx, dword [0x990550]
mov ebx, dword [ebx]
mov eax, dword [0x9979c4]
call ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
call fcn.007b157c
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
push ebp
push 0x787502
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
inc dword [eax + 0x40]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ebx, eax
push 0x78768c
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x40]
call fcn.00660314
push dword [ebp - 0x28]
push 0x78769c
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.00517970
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov ecx, 0
call fcn.0040afa0
push dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040ac54
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov dl, 1
call fcn.0074de48
call fcn.0074dc74
push eax
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.0040b4b0
mov edx, dword [ebp - 0x34]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.0074de80
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov dl, 1
call fcn.0074de48
call fcn.0074dc74
mov edx, dword [eax]
call dword [edx + 0x14]
lea edx, [ebp - 0x38]
call fcn.00660314
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 0x7876ac
call fcn.0040abd0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.007bab54
mov edx, eax
lea ecx, [ebp - 0x70]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.007b99e8
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.007bab54
mov edx, eax
lea ecx, [ebp - 0x74]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.007b99e8
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0
lea edx, [ebp - 0x6c]
mov ecx, 5
mov eax, 0x7876c0
call fcn.00440b8c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0075d440
inc dword [ebp - 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7875f4
mov eax, dword [ebp - 0x18]
call fcn.007b157c
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x1c]
je 0x787501
mov eax, dword [ebp - 0x1c]
call fcn.00408650
ret
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xc], 2
jne 0x7875f4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0074df8c
cmp dword [ebp - 8], 0
je 0x7875f4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov byte [eax + 0x35], 1
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.007bab54
mov edx, eax
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.007b99e8
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.007bab54
mov edx, eax
lea ecx, [ebp - 0x80]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.007b99e8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0
lea edx, [ebp - 0x6c]
mov ecx, 5
mov eax, 0x7876c0
call fcn.00440b8c
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0075d440
inc dword [ebp - 0x14]
inc dword [ebp - 0x10]
dec dword [ebp - 0x24]
jne 0x787227
inc dword [ebp - 0xc]
dec dword [ebp - 0x20]
jne 0x7871f6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x78767a
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.0040a3a0
lea eax, [ebp - 0x78]
call fcn.0040a334
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0040a3a0
lea eax, [ebp - 0x3c]
call fcn.0040a334
lea eax, [ebp - 0x38]
call fcn.0040a334
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0040a370
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0040a3a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a3a0
ret