Function at 0x505314
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp + 0x10]
call fcn.00405b48
mov eax, dword [ebp + 0xc]
call fcn.00405b48
lea ebx, [ebp - 0x5c]
xor eax, eax
push ebp
push 0x5055f3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x60]
mov edx, dword [ebp + 0xc]
mov ecx, 0
call fcn.00405da4
mov eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
mov edx, dword [ebp + 0x10]
mov ecx, 0
call fcn.00405da4
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 8]
pop edx
call fcn.00504e50
lea ecx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
call fcn.005050c4
lea edx, [ebp - 0x68]
mov eax, esi
call fcn.0040b8b4
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x10]
call fcn.00504ff8
lea edx, [ebp - 0x6c]
mov eax, edi
call fcn.0040b8b4
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x14]
call fcn.00504ff8
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.00504ff8
mov eax, ebx
mov ecx, 8
mov edx, dword [0x53aa74]
call fcn.0040d55c
mov eax, dword [0x53aa70]
mov dword [ebx + 8], eax
movzx eax, word [0x53aa60]
mov word [ebx + 0xc], ax
movzx eax, word [0x53aa60]
mov word [ebx + 0xe], ax
mov eax, dword [ebp - 0x10]
call fcn.00407414
mov esi, eax
mov eax, dword [ebp - 0x18]
call fcn.00407414
add esi, eax
mov eax, dword [ebp - 0x14]
call fcn.00407414
add esi, eax
mov eax, esi
add eax, 0x40
call fcn.00478e80
mov dword [ebx + 0x10], eax
movzx eax, word [0x53aa64]
mov word [ebx + 0x14], ax
movzx eax, word [0x53aa64]
mov word [ebx + 0x16], ax
mov eax, dword [ebp - 0x10]
call fcn.00407414
mov esi, eax
mov eax, dword [ebp - 0x18]
call fcn.00407414
add esi, eax
mov eax, dword [ebp - 0x14]
call fcn.00407414
add esi, eax
mov eax, dword [ebp - 8]
call fcn.00407414
add esi, eax
mov eax, esi
add eax, 0x40
call fcn.00478e80
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x10]
call fcn.00407414
call fcn.00478e7c
mov esi, eax
mov word [ebx + 0x1c], si
mov word [ebx + 0x1e], si
mov eax, dword [0x53aa68]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x18]
call fcn.00407414
call fcn.00478e7c
mov esi, eax
mov word [ebx + 0x24], si
mov word [ebx + 0x26], si
mov eax, dword [ebp - 0x10]
call fcn.00407414
add eax, 0x40
call fcn.00478e80
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x14]
call fcn.00407414
call fcn.00478e7c
mov esi, eax
mov word [ebx + 0x2c], si
mov word [ebx + 0x2e], si
mov eax, dword [ebp - 0x10]
call fcn.00407414
mov esi, eax
mov eax, dword [ebp - 0x18]
call fcn.00407414
add esi, eax
mov eax, esi
add eax, 0x40
call fcn.00478e80
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x10]
call fcn.00407414
mov esi, eax
add esi, 0x40
mov eax, dword [ebp - 0x18]
call fcn.00407414
add esi, eax
mov eax, dword [ebp - 0x14]
call fcn.00407414
add esi, eax
mov eax, dword [ebp - 8]
call fcn.00407414
add esi, eax
mov eax, dword [ebp - 0xc]
call fcn.00407414
add esi, eax
mov eax, esi
call fcn.00478e80
mov dword [ebx + 0x38], eax
mov eax, dword [0x53aa6c]
mov dword [ebx + 0x3c], eax
lea ecx, [ebp - 4]
mov eax, ebx
mov edx, 0x40
call fcn.0047bc98
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.0047c79c
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.0047c79c
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.0047c79c
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.0047c79c
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.0047c79c
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov eax, dword [0x500168]
call fcn.004ff4ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5055fa
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.00405b58
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.00405098
lea eax, [ebp - 0x18]
mov edx, dword [0x40a294]
mov ecx, 6
call fcn.00406984
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00405b58
ret