Function at 0x525178
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x525180
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x5254d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov dl, 1
mov eax, dword [0x493c98]
call fcn.00494abc
mov dword [ebp - 0x10], eax
mov cl, 1
mov dl, 1
mov eax, dword [0x493c98]
call fcn.00494abc
mov esi, eax
mov dl, 1
mov eax, dword [0x525088]
call fcn.00403e0c
xor edx, edx
mov eax, ebx
call fcn.0042c4c0
mov ebx, eax
xor eax, eax
push ebp
push 0x525451
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0xc7
mov edx, 0x5254e8
mov eax, dword [ebp - 0x10]
call fcn.004948b8
lea eax, [ebx + 4]
mov edx, 0x5254fc
call fcn.00404ca0
mov ecx, dword [ebx + 0x30]
mov edx, 0x525504
mov eax, esi
call fcn.0049483c
mov ecx, dword [ebx + 0x2c]
mov edx, 0x525518
mov eax, esi
call fcn.0049483c
mov ecx, dword [ebx + 4]
mov edx, 0x52552c
mov eax, esi
call fcn.0049483c
mov ecx, dword [ebx + 8]
mov edx, 0x525540
mov eax, esi
call fcn.0049483c
mov ecx, dword [ebx + 0xc]
mov edx, 0x52554c
mov eax, esi
call fcn.0049483c
mov ecx, dword [ebx + 0x34]
mov edx, 0x52555c
mov eax, esi
call fcn.0049483c
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x10]
call fcn.00496918
mov ecx, dword [ebp - 0x18]
mov edx, 0x52556c
mov eax, esi
call fcn.0049483c
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x14]
call fcn.00496918
mov ecx, dword [ebp - 0x1c]
mov edx, 0x525578
mov eax, esi
call fcn.0049483c
mov ecx, dword [ebx + 0x18]
mov edx, 0x525584
mov eax, esi
call fcn.0049483c
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x1c]
call fcn.00496918
mov ecx, dword [ebp - 0x20]
mov edx, 0x525590
mov eax, esi
call fcn.0049483c
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x20]
call fcn.00496918
mov ecx, dword [ebp - 0x24]
mov edx, 0x52559c
mov eax, esi
call fcn.0049483c
mov ecx, dword [ebx + 0x24]
mov edx, 0x5255b0
mov eax, esi
call fcn.0049483c
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x28]
call fcn.00496918
mov ecx, dword [ebp - 0x28]
mov edx, 0x5255cc
mov eax, esi
call fcn.0049483c
mov ecx, esi
mov edx, 0x5255d8
mov eax, dword [ebp - 0x10]
call fcn.00494714
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x493d34]
call fcn.004952f4
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x5255e8
call fcn.00404f58
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x418a34]
call fcn.0041d818
mov dword [ebp - 4], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x418a34]
call fcn.0041d818
mov dword [ebp - 8], eax
mov eax, 0x5333b4
mov edx, 0x5255f8
call fcn.00404ca0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x490a80]
call fcn.00490f68
mov ebx, eax
mov eax, ebx
call fcn.0049296c
add eax, 0xc
mov edx, 0x525630
call fcn.00404ca0
mov eax, ebx
call fcn.0049296c
add eax, 0x50
mov edx, 0x525650
call fcn.00404ca0
mov eax, ebx
call fcn.0049296c
add eax, 0x24
mov edx, 0x525680
call fcn.00404ca0
mov dword [ebx + 0x9c], 0x7d0
mov byte [ebx + 0x110], 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x5333b4]
mov eax, ebx
call fcn.0049113c
mov eax, dword [ebp - 8]
mov edx, dword [eax + 4]
mov eax, dword [0x493d34]
call fcn.00496060
mov edx, dword [0x493c98]
call fcn.00403ff8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x525438
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x5256a8
mov eax, dword [ebp - 0xc]
call fcn.00494768
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx]
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x14]
call fcn.00416034
mov eax, dword [ebp - 0x14]
mov edx, 0x5256b8
call fcn.00405058
je 0x525429
xor ebx, ebx
jmp 0x52542e
mov ebx, 0x387
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x525447
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x525479
cmp dword [ebp - 0x10], 0
je 0x525487
mov eax, dword [ebp - 0x10]
call fcn.00403e3c
cmp dword [ebp - 0xc], 0
je 0x525495
mov eax, dword [ebp - 0xc]
call fcn.00403e3c
cmp dword [ebp - 4], 0
je 0x5254a3
mov eax, dword [ebp - 4]
call fcn.00403e3c
cmp dword [ebp - 8], 0
je 0x5254b1
mov eax, dword [ebp - 8]
call fcn.00403e3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5254db
lea eax, [ebp - 0x40]
call fcn.004114fc
lea eax, [ebp - 0x30]
mov edx, 8
call fcn.00404c70
ret