Function at 0x522e10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x134], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x523186
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
call fcn.005206bc
test al, al
je 0x522f54
mov eax, dword [ebp - 4]
call fcn.00520674
xor edx, edx
push ebp
push 0x522f4d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.005206c8
mov dx, 0x84
mov eax, dword [ebp - 4]
call fcn.00520554
mov eax, dword [ebp - 4]
call fcn.0052068c
mov eax, dword [ebp - 4]
lea edx, [eax + 0x14]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.00520698
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx]
mov edx, dword [ebp - 8]
inc edx
mov eax, dword [ebp - 4]
call fcn.00520698
mov eax, dword [ebp - 4]
call fcn.005206a4
mov eax, dword [ebp - 4]
call fcn.0052056c
mov eax, dword [ebp - 4]
call fcn.005206d4
lea edx, [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.005206b0
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.005206b0
mov byte [ebx], al
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.005206b0
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.005206b0
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jle 0x522f37
lea edx, [ebp - 0x12f]
mov eax, dword [ebp - 4]
call fcn.005206b0
mov byte [ebp - 0x130], al
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00404750
mov edx, dword [ebp - 0x134]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec ebx
jne 0x522f02
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523162
mov eax, dword [ebp - 4]
call fcn.00520680
ret
xor edx, edx
push ebp
push 0x523158
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x50b438]
call fcn.00519144
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x50b438]
call fcn.00519144
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x523147
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
add eax, 0xc
mov edx, dword [ebp - 8]
call fcn.00402f00
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x110], 1
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 8]
xor edx, edx
push ebp
push 0x523122
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
lea edx, [ebp - 0x30]
mov ecx, 0x10
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x30]
call fcn.0050becc
lea edx, [eax + 0xbd0]
lea eax, [ebp - 0x30]
call fcn.0049d55c
test al, al
jne 0x52305b
lea edx, [ebp - 0x144]
mov eax, 0x5231a4
call fcn.0049d50c
lea edx, [ebp - 0x144]
lea eax, [ebp - 0x30]
call fcn.0049d55c
test al, al
jne 0x52305b
push 0x5231b0
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 4]
call fcn.005204b0
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 8]
push eax
push 0x5231b0
push 0x5231b0
push 0x5231b0
push 0x5231b0
push 0x5231b0
push 0
push 0
call fcn.0050becc
mov ecx, 0x5231b0
mov dx, 0x2f04
call fcn.005127f0
push 0
lea edx, [ebp - 0x20]
mov ecx, 8
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x30]
push 0
mov edx, dword [ebp + 0xc]
mov ecx, 8
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x30]
push 0
mov edx, ebx
mov ecx, 1
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x30]
push 0
xor ecx, ecx
mov cl, byte [ebx]
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x30]
push 0
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x30]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jle 0x523108
push 0
lea edx, [ebp - 0x130]
mov ecx, 1
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x30]
push 0
xor ecx, ecx
mov cl, byte [ebp - 0x130]
lea edx, [ebp - 0x12f]
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x30]
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x130]
call fcn.00404750
mov edx, dword [ebp - 0x248]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec ebx
jne 0x5230ba
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523129
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0xc]
ret