Function at 0x10314980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10353f38
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x10480b90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
add eax, 0x78
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x74
push ecx
lea ecx, [ebp - 0x14]
call fcn.10314880
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x7c], 0x400
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x34], 0
push 0x8000
mov ecx, dword [ebp - 0x20]
add ecx, 0x30
push ecx
call fcn.10307600
add esp, 8
push 0x40000
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x30]
push eax
call fcn.103128c0
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10314a36
mov dword [ebp - 0x28], 1
jmp 0x10314a51
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x24]
push edx
call fcn.10311c00
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
call fcn.10312340
add esp, 0x10
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
push edx
call fcn.10312600
add esp, 8
sub esp, 8
mov eax, esp
mov dword [ebp - 0x18], esp
push eax
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0x24]
call fcn.10311cc0
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
push eax
call fcn.103127a0
add esp, 0xc
push 0x20000
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x30]
push edx
call fcn.103128c0
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10314adc
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
call fcn.10311dc0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x24]
push ecx
call fcn.10311b40
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x30]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.10343f60
add esp, 8
mov ecx, dword [ebp - 0x20]
call fcn.10314de0
mov byte [ebp - 0x39], al
movzx edx, byte [ebp - 0x39]
test edx, edx
jne 0x10314b2f
mov byte [ebp - 0x19], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10314950
mov al, byte [ebp - 0x19]
jmp 0x10314bd1
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call fcn.10311e90
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x20]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 0x10]
jne 0x10314b71
push 0
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
call fcn.10311e90
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x20]
mov ecx, dword [edx]
cmp ecx, dword [eax + 0xc]
jne 0x10314b71
mov dword [ebp - 0x48], 1
jmp 0x10314b78
mov dword [ebp - 0x48], 0
mov dl, byte [ebp - 0x48]
mov byte [ebp - 0x1a], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10314950
mov al, byte [ebp - 0x1a]
jmp 0x10314bd1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret