Function at 0x4950b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x528008
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
xor eax, eax
xor edx, edx
push edi
mov edi, ecx
mov dword [esp + 0x24], 0x5315ac
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x40], eax
mov ecx, dword [ecx + 8]
dec ecx
mov dword [esp + 0xc], ecx
js 0x495228
mov edx, dword [ebp + 0x14]
mov ebx, dword [edx + 8]
dec ebx
mov dword [esp + 0x10], ebx
js 0x495215
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea ecx, [ebx*4]
mov eax, dword [eax + 4]
add eax, ecx
mov ecx, dword [esp + 0xc]
lea esi, [ecx*4]
mov ecx, esi
add ecx, dword [edx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [eax], ecx
push edx
mov ecx, edi
call fcn.00492e80
fst qword [esp + 0x14]
fcomp qword [ebp + 0x18]
fnstsw ax
test ah, 0x41
je 0x4951e8
mov eax, dword [edi + 0x9c]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x2c]
call fcn.004ecdd0
mov edx, dword [edi + 0x9c]
mov ecx, dword [edi + 0x98]
mov eax, dword [esp + 0x28]
mov ebx, edx
dec edx
test ebx, ebx
je 0x49519b
inc edx
mov ebx, dword [ecx]
add ecx, 4
mov dword [eax], ebx
add eax, 4
dec edx
jne 0x49518e
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, edi
call fcn.00492e80
fstp qword [esp + 0x1c]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x20]
mov ebx, dword [ebp + 0xc]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [ebx + 4]
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
call dword [ebp + 0x28]
add esp, 0x28
test al, al
jne 0x49525b
mov ebx, dword [esp + 0x10]
mov eax, dword [ebp + 0x14]
lea ecx, [ebx*4]
mov eax, dword [eax + 4]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + edx]
add esi, edx
mov edx, dword [eax]
dec ebx
mov dword [esi], edx
mov dword [eax], ecx
mov dword [esp + 0x10], ebx
jns 0x495115
xor eax, eax
mov ecx, dword [esp + 0xc]
dec ecx
mov dword [esp + 0xc], ecx
jns 0x495104
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], 0x5315ac
cmp edx, eax
mov dword [esp + 0x40], 2
je 0x495245
push edx
call fcn.0051aee4
add esp, 4
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [esp + 0x2c]
mov esi, dword [ebp + 0x10]
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.004ecdd0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 4]
test edx, edx
je 0x495288
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x49527b
mov ecx, dword [edi + 0x9c]
mov esi, dword [ebp + 0x14]
push 0xffffffffffffffff
push ecx
mov ecx, esi
call fcn.004ecdd0
mov ecx, dword [edi + 0x9c]
mov edi, dword [edi + 0x98]
mov eax, dword [esi + 4]
mov edx, ecx
dec ecx
test edx, edx
je 0x4952bf
inc ecx
mov edx, dword [edi]
add edi, 4
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x4952b2
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], 0x5315ac
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x1c]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], 1
test eax, eax
je 0x4952fd
push eax
call fcn.0051aee4
add esp, 4
mov ecx, dword [esp + 0x38]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x24