Function at 0x41e7d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fb3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x530790]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x530790]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
cmp ecx, ebx
jne 0x41e81f
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], ax
jmp 0x41e9f1
xor edx, edx
mov eax, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x41e837
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0041c0c0
mov dword [esp + 0x38], ebx
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x41e896
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x41e86c
lea eax, [esp + 0x14]
cmp word [eax], 0x22
jne 0x41e896
push 1
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0x22
call fcn.0041c3a0
cmp eax, 0xffffffff
je 0x41e896
inc eax
cmp eax, esi
jb 0x41e8d8
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0x5c
call fcn.00424200
cmp eax, 0xffffffff
je 0x41e8e4
push 1
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0x20
call fcn.0041c3a0
cmp eax, 0xffffffff
je 0x41e8e4
inc eax
cmp eax, esi
jae 0x41e8e4
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x18]
call fcn.0041c6d0
push 1
push ebx
push 0x51184c
lea ecx, [esp + 0x1c]
call fcn.0041c3a0
cmp eax, 0xffffffff
je 0x41e9be
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x41e90d
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call fcn.004186a0
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
jle 0x41e937
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.004196c0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004cecfb
add esp, 8
cmp eax, ebx
jl 0x41ea10
mov ecx, dword [esp + 0xc]
cmp eax, dword [ecx - 8]
jg 0x41ea10
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [esp + 0xc]
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41e980
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0041c0c0
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e9be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xffffffffffffffff
xor ecx, ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
lea edx, [esp + 0x18]
mov word [edi + 4], cx
push edx
mov ecx, edi
call fcn.0041bfc0
cmp dword [esp + 0x28], 8
jb 0x41e9f1
mov eax, dword [esp + 0x14]
push eax
call fcn.004ccb07
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004cd040
add esp, 0x30
ret
push 0x80070057
call fcn.00419a30
int3