Function at 0x417d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c9bd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
call fcn.00415a60
mov al, byte [esp + 0x13]
lea ebx, [esi + 0x188]
xor edi, edi
mov dword [esp + 0x30], edi
mov byte [ebx], al
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [esi], 0x4cfad0
mov dword [esi + 0x3c], 0x4cfac4
mov eax, dword [ebx + 4]
mov byte [esp + 0x30], 1
cmp eax, edi
je 0x417e39
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
je 0x417e39
mov ebp, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, ebp
cmp eax, ebp
je 0x417e2f
mov esi, eax
mov edi, edx
add eax, 0xa0
mov ecx, 0x28
add edx, 0xa0
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x417e0f
mov esi, dword [esp + 0x20]
xor edi, edi
mov eax, dword [ebx + 8]
mov dword [ebx + 8], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov ecx, dword [0x5d339c]
shl ecx, 4
mov eax, dword [ecx + 0x5d903c]
cmp eax, edi
je 0x418079
mov edx, dword [ecx + 0x5d9040]
sub edx, eax
mov eax, 0x66666667
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x18]
cmp eax, edx
jae 0x418079
mov esi, dword [ecx + 0x5d903c]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov eax, 0x66666667
sub edx, ecx
mov ebp, dword [esp + 0x1c]
imul edx
sar edx, 6
mov eax, edx
add esi, ebp
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x14], esi
cmp edx, 1
mov ebp, ecx
jae 0x417f7a
mov eax, dword [ebx + 4]
test eax, eax
je 0x417edb
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 1
jbe 0x417edb
mov ecx, ebx
call fcn.004185a0
mov edi, eax
jmp 0x417ee0
mov edi, 1
mov ecx, ebx
call fcn.004185a0
add eax, edi
mov dword [esp + 0x24], eax
jns 0x417ef1
xor eax, eax
lea edx, [eax + eax*4]
shl edx, 5
push edx
call fcn.004b7e62
add esp, 4
mov edi, eax
mov eax, dword [ebx + 4]
mov ecx, ebx
push edi
push ebp
push eax
call fcn.004185d0
push esi
push 1
push eax
mov ecx, ebx
mov dword [esp + 0x20], eax
call fcn.00418610
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 8]
add ecx, 0xa0
push ecx
push edx
push ebp
mov ecx, ebx
call fcn.004185d0
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
push ecx
mov ecx, ebx
call fcn.00404a10
mov edx, dword [ebx + 4]
push edx
call fcn.004a9db0
mov eax, dword [esp + 0x28]
add esp, 4
mov ecx, ebx
lea eax, [eax + eax*4]
shl eax, 5
add eax, edi
mov dword [ebx + 0xc], eax
call fcn.004185a0
inc eax
mov dword [ebx + 4], edi
lea ecx, [eax + eax*4]
shl ecx, 5
add ecx, edi
mov dword [ebx + 8], ecx
jmp 0x418058
mov edx, ecx
mov eax, 0x66666667
sub edx, ebp
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x417fef
lea edx, [ebp + 0xa0]
push edx
push ecx
push ebp
mov ecx, ebx
call fcn.004185d0
mov edi, dword [ebx + 8]
mov eax, 0x66666667
mov ecx, edi
push esi
sub ecx, ebp
imul ecx
sar edx, 6
mov eax, edx
mov ecx, 1
shr eax, 0x1f
add edx, eax
sub ecx, edx
push ecx
push edi
mov ecx, ebx
call fcn.00418610
mov eax, dword [ebx + 8]
cmp ebp, eax
je 0x418051
jmp 0x417fda
mov esi, dword [esp + 0x14]
mov edi, ebp
add ebp, 0xa0
mov ecx, 0x28
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x417fd6
jmp 0x418051
lea eax, [ecx - 0xa0]
push ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.004185d0
mov edx, dword [ebx + 8]
lea eax, [edx - 0xa0]
cmp ebp, eax
je 0x41802e
sub eax, 0xa0
sub edx, 0xa0
mov ecx, 0x28
mov esi, eax
mov edi, edx
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x418010
mov esi, dword [esp + 0x14]
lea eax, [ebp + 0xa0]
cmp ebp, eax
je 0x418051
jmp 0x41803e
mov esi, dword [esp + 0x14]
mov edi, ebp
add ebp, 0xa0
mov ecx, 0x28
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x41803a
add dword [ebx + 8], 0xa0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
inc ecx
add eax, 0xa0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
xor edi, edi
jmp 0x417e41
mov ecx, esi
mov dword [esi + 0x198], edi
call fcn.00418110
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret