Function at 0x49ac93
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x506e72
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x5450d0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x5450d0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x40], eax
mov esi, edx
lea eax, [edi + 0x210]
lea ebx, [esp + 0x34]
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
mov byte [esp + 0x38], 0
call fcn.0045b54a
and dword [esp + 0xd0], 0
push esi
lea eax, [esp + 0x20]
lea ebx, [edi + 0x23c]
push eax
call fcn.0049944e
add esi, 0xc
mov byte [esp + 0x17], 1
call fcn.0046d44c
mov ecx, eax
lea eax, [esp + 0x24]
call fcn.00498c83
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x10]
mov esi, eax
mov dword [esp + 0x2c], ecx
call fcn.0046d44c
push dword [esp + 0x2c]
add eax, 8
call fcn.00461507
mov esi, eax
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], esi
call fcn.0044b802
mov edi, dword [edi]
lea eax, [edi + esi - 1]
cdq
idiv edi
lea edi, [esp + 0x24]
lea esi, [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [ebx]
mov dword [esp + 0x24], eax
call fcn.0049d414
test al, al
jne 0x49add1
call fcn.004a8e3f
mov edi, dword [esp + 0x2c]
cmp dword [eax + 0x10], edi
je 0x49add1
call fcn.004a8e3f
lea ecx, [esp + 0x34]
push ecx
push edi
push 2
push 0
push eax
push dword [esp + 0x2c]
call fcn.0049a4c3
mov esi, eax
mov byte [esp + 0x17], 0
test esi, esi
jge 0x49add1
or dword [esp + 0xd0], 0xffffffff
lea eax, [esp + 0x34]
call fcn.0045aa13
mov eax, esi
jmp 0x49af65
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [ebx]
lea edi, [esp + 0x24]
lea esi, [esp + 0x1c]
mov dword [esp + 0x24], eax
call fcn.0049d414
test al, al
je 0x49ae22
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x34]
call fcn.0049a8a3
mov esi, eax
mov byte [esp + 0x17], 0
test esi, esi
jl 0x49adb9
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx]
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
call fcn.004a8e6a
lea eax, [esp + 0x5c]
call fcn.0047bbb2
and dword [esp + 0x24], 0
cmp dword [esp + 0x2c], 0
jle 0x49ae88
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
jl 0x49ae4b
lea edi, [esp + 0x3c]
lea esi, [esp + 0x1c]
call fcn.004a8e3f
push dword [esp + 0x24]
mov edi, dword [edi]
lea esi, [eax + 0x14]
call fcn.0049d0fe
push dword [eax]
mov eax, edi
lea esi, [esp + 0x60]
call fcn.0047bc8b
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
sub dword [esp + 0x40], eax
inc dword [esp + 0x28]
pop ecx
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x2c]
jl 0x49ae3d
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x60]
call fcn.0047bbdd
mov edi, dword [esp + 0x44]
pop ecx
push 5
pop ecx
push dword [esp + 0x20]
lea eax, [esp + 0x38]
push dword [esp + 0x20]
lea esi, [esp + 0x50]
push eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x23]
push eax
mov eax, esi
call fcn.0049afe6
mov edi, eax
test edi, edi
jl 0x49af52
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0xc4]
jge 0x49aee3
cmp byte [esi + 0xd0], 0
jne 0x49af2a
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [ebx]
lea edi, [esp + 0x40]
lea esi, [esp + 0x1c]
mov dword [esp + 0x40], eax
call fcn.0049d414
test al, al
jne 0x49af26
call fcn.004a8e3f
mov edi, dword [esp + 0x18]
push eax
call fcn.004996c7
push dword [esp + 0x20]
lea eax, [esp + 0x20]
push dword [esp + 0x20]
push eax
call fcn.0049d1af
mov esi, edi
jmp 0x49af2a
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 8]
lea eax, [esi + 0x268]
add dword [eax], 1
adc dword [eax + 4], 0
cmp byte [esp + 0x17], 0
je 0x49af52
lea eax, [esi + 0x270]
add dword [eax], 1
adc dword [eax + 4], 0
or dword [esp + 0xd0], 0xffffffff
lea eax, [esp + 0x34]
call fcn.0045aa13
mov eax, edi
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call 0x511697
mov esp, ebp
pop ebp
ret 4