Function at 0x51f0b1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4dd510
call 0x575ad8
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
call fcn.00523840
push 0xffffffffffffff9d
lea edi, [esi + 0x2e8]
pop eax
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, esi
mov dword [esi + 0x2f8], ebx
call fcn.0051fe6f
push 0x523280
lea ecx, [ebp - 0x30]
mov dword [esi + 4], 0x8c
mov dword [esi + 0x2e0], ebx
call 0x58d204
push 0x44
mov dword [ebp - 4], ebx
mov dword [esi + 0x2fc], ebx
call 0x58c41a
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x51f123
mov ecx, eax
call fcn.00513473
jmp 0x51f125
xor eax, eax
push ecx
mov dword [ebp - 0x18], eax
mov edi, esp
mov dword [ebp - 0x2c], esp
push ecx
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x2c], esp
push fcn.005155c8
mov dword [eax + 8], 0xcb
call 0x58d204
lea ecx, [esi + 0x1a8]
push edi
call 0x54d20a
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0051c398
mov edi, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
lea ecx, [edi + 0x30]
call 0x58d2cf
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call 0x58d196
push 1
mov dword [edi + 0x2c], ebx
pop eax
lea ecx, [esi + 0x14]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x2fc]
push edi
mov dword [edi + 0x14], eax
mov dword [edi + 0x34], ebx
mov dword [ebp - 0x18], ecx
call 0x58bba8
inc dword [esi + 0x2fc]
lea eax, [esi + 0x304]
mov dword [ebp - 0x10], 0x1f6
mov dword [ebp - 0x14], eax
push 0x44
call 0x58c41a
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x51f1d0
mov ecx, eax
call fcn.00513473
jmp 0x51f1d2
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
add ecx, 0xfffffedd
mov byte [ebp - 4], bl
push ecx
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x14]
mov edi, esp
mov dword [ebp - 0x34], esp
push ecx
add eax, 0xfffffffc
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call 0x58cf0b
push edi
lea ecx, [esi + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0051c398
mov edi, dword [ebp - 0x1c]
push eax
mov byte [ebp - 4], 4
lea ecx, [edi + 0x30]
call 0x58d2cf
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call 0x58d196
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x2c], ebx
mov eax, dword [esi + 0x2fc]
push edi
mov dword [edi + 0x14], eax
call 0x58bba8
inc dword [esi + 0x2fc]
push 0x8c
call 0x58c41a
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x51f26e
mov ecx, eax
call fcn.0050c7af
jmp 0x51f270
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push ecx
mov dword [eax + 8], ecx
mov edi, esp
mov dword [ebp - 0x34], esp
push ecx
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x34], esp
push dword [ebp - 0x14]
call 0x58cf0b
push edi
lea ecx, [esi + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0051c398
push eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 6
lea ecx, [eax + 0x38]
call 0x58d2cf
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call 0x58d196
mov eax, dword [ebp - 0x14]
push ecx
mov edi, esp
mov dword [ebp - 0x34], esp
push ecx
add eax, 4
mov ebx, esp
mov dword [ebp - 0x34], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call 0x58cf0b
push ebx
lea ecx, [esi + 0x1a8]
call 0x54d20a
push edi
mov ecx, esi
call fcn.0051c398
mov edi, dword [ebp - 0x18]
mov ecx, edi
call fcn.0050d3ba
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 0x34]
add ecx, 0xfffffe0b
xor ebx, ebx
push ecx
push 0x515868
push eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
call 0x589ae1
add esp, 0xc
lea eax, [edi + 0x34]
push eax
lea eax, [ebp - 0x2c]
push 0x515864
push eax
call 0x58d49f
push 0x515864
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
call 0x58d42b
push eax
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 8
call 0x58d2cf
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call 0x58d196
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call 0x58d196
mov eax, dword [esi + 0x2fc]
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 0x14], eax
mov dword [ebp - 0x18], ecx
call 0x58bba8
inc dword [esi + 0x2fc]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x10
add eax, 0xfffffe0a
cmp eax, 4
jl 0x51f1b4
push 0x44
call 0x58c41a
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
mov byte [ebp - 4], 9
je 0x51f3bf
mov ecx, eax
call fcn.00513473
jmp 0x51f3c1
xor eax, eax
push ecx
mov dword [ebp - 0x1c], eax
mov edi, esp
mov dword [ebp - 0x34], esp
push ecx
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x5155a0
mov dword [eax + 8], 0xcc
call 0x58d204
push edi
lea ecx, [esi + 0x1a8]
call 0x54d20a
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.0051c398
mov edi, dword [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xa
lea ecx, [edi + 0x30]
call 0x58d2cf
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call 0x58d196
mov ecx, dword [ebp - 0x18]
push 1
pop eax
mov dword [edi + 0x2c], ebx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x2fc]
push edi
mov dword [edi + 0x14], eax
mov dword [edi + 0x34], ebx
call 0x58bba8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call 0x58d196
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret