Function at 0x417940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x683e6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
mov dword [edi], fcn.00417ca0
lea esi, [edi + 0x148]
mov dword [esp + 0x28], 6
test esi, esi
je 0x417a12
mov eax, dword [esi]
test eax, eax
je 0x417a12
add eax, 0x18
mov ecx, 0x6e24e8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005eb770
mov eax, dword [0x6e24ec]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x417a12
lea ecx, [esp + 0x10]
push esi
push ecx
mov ecx, 0x6e24f8
call fcn.0041ef10
mov eax, dword [0x6e24fc]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je 0x417a0c
mov edx, dword [ecx + 0x10]
dec edx
mov dword [ecx + 0x10], edx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x417a0c
mov ecx, dword [esi]
test ecx, ecx
je 0x4179e4
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, 0x6e24e8
call fcn.0041eed0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, 0x6e24f8
call fcn.0041eef0
mov dword [esi], 0
mov eax, dword [edi + 0x180]
test eax, eax
jne 0x417a20
xor ebx, ebx
jmp 0x417a2b
mov ebx, dword [edi + 0x184]
sub ebx, eax
sar ebx, 2
xor esi, esi
test ebx, ebx
jle 0x417a4a
mov eax, dword [edi + 0x180]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x417a45
mov edx, dword [ecx]
push 1
call dword [edx + 4]
inc esi
cmp esi, ebx
jl 0x417a31
mov eax, dword [edi + 0x184]
mov edx, dword [edi + 0x180]
lea ecx, [edi + 0x17c]
push eax
push edx
call fcn.00632090
mov eax, dword [edi + 0x190]
lea ebp, [edi + 0x18c]
test eax, eax
jne 0x417a77
xor ebx, ebx
jmp 0x417a7f
mov ebx, dword [ebp + 8]
sub ebx, eax
sar ebx, 2
xor esi, esi
test ebx, ebx
jle 0x417a9e
mov eax, dword [edi + 0x190]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x417a99
mov eax, dword [ecx]
push 1
call dword [eax + 4]
inc esi
cmp esi, ebx
jl 0x417a85
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push eax
push ecx
mov ecx, ebp
call fcn.00632090
xor ebx, ebx
lea esi, [edi + 0x19c]
mov eax, dword [esi + 4]
test eax, eax
je 0x417add
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x417add
mov edx, dword [edi + 0x1a0]
mov eax, dword [edx + ebx*4]
push eax
call fcn.006713a0
add esp, 4
inc ebx
jmp 0x417ab5
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00632090
lea ebx, [edi + 0x1cc]
test ebx, ebx
je 0x417b8e
mov eax, dword [ebx]
test eax, eax
je 0x417b8e
add eax, 0x18
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, 0x6e24c8
call fcn.005ebb40
mov eax, dword [0x6e24cc]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x417b8e
lea edx, [esp + 0x10]
push ebx
push edx
mov ecx, 0x6e24d8
call fcn.0041f1d0
mov eax, dword [0x6e24dc]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je 0x417b88
mov edx, dword [ecx + 0x10]
dec edx
mov dword [ecx + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x417b88
mov ecx, dword [ebx]
test ecx, ecx
je 0x417b60
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, 0x6e24c8
call fcn.0041f190
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, 0x6e24d8
call fcn.0041f1b0
mov dword [ebx], 0
mov ecx, dword [edi + 0x134]
test ecx, ecx
je 0x417b9f
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov ecx, dword [edi + 0x1b4]
mov dword [edi + 0x134], 0
test ecx, ecx
je 0x417bba
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [edi + 0x1ac]
test ecx, ecx
je 0x417bcb
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov ecx, dword [edi + 0x1b0]
test ecx, ecx
je 0x417bdc
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x30], 5
call fcn.004748c0
mov eax, dword [esi + 4]
push eax
call fcn.006713a0
xor ebx, ebx
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x30], 4
call fcn.004748c0
mov eax, dword [ebp + 4]
push eax
call fcn.006713a0
add esp, 4
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
lea ecx, [edi + 0x17c]
mov byte [esp + 0x28], 3
call fcn.00498730
lea ecx, [edi + 0x16c]
mov byte [esp + 0x28], 2
call fcn.00498730
lea ecx, [edi + 0x15c]
mov byte [esp + 0x28], 1
call fcn.00498730
lea ecx, [edi + 0x14c]
mov byte [esp + 0x28], bl
call fcn.00498730
mov ecx, edi
mov dword [esp + 0x28], 0xffffffff
call fcn.0043bb80
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret