Function at 0x42ace0
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x45a178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x4631a0]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], ebx
cmp ecx, ebx
je 0x42b079
cmp word [ecx], bx
je 0x42b079
lea eax, [esp + 0x2c]
push ecx
push eax
call fcn.0042b0f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
push ecx
call fcn.00420cb0
mov eax, dword [esp + 0x38]
add esp, 0xc
mov esi, dword [eax - 8]
cmp esi, ebx
jne 0x42adec
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
cmp edx, ebx
jl 0x42ad6c
push eax
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42ad7c
mov edx, dword [0x4631a0]
push ecx
mov ecx, edi
mov dword [edi], edx
call fcn.00405430
mov eax, dword [esp + 0x2c]
mov edx, dword [0x4631a4]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42adad
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x42adad
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.0044bf22
add esp, 4
mov eax, dword [esp + 0xc]
mov edx, dword [0x4631a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42add8
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x42add8
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.0044bf22
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
jg 0x42adfc
cmp esi, dword [eax - 4]
jle 0x42ae36
push esi
lea ecx, [esp + 0x30]
call fcn.00404720
test eax, eax
jne 0x42ae0e
xor edi, edi
jmp 0x42ae3a
lea eax, [esi + esi + 2]
lea ecx, [edi + 0xc]
push eax
mov eax, dword [esp + 0x30]
lea edx, [esi + esi + 2]
push ecx
push edx
push eax
call fcn.00401bc0
mov ecx, dword [esp + 0x3c]
add esp, 0x10
push edi
mov dword [ecx - 8], esi
call fcn.00405ba0
mov edi, dword [esp + 0x2c]
cmp word [edi], 0x22
push ebp
mov dword [esp + 0x18], ebx
jne 0x42af1b
mov esi, dword [sym.imp.MSVCRT.dll_wcschr]
add edi, 2
push 0x22
push edi
call esi
add esp, 8
cmp eax, ebx
je 0x42b042
mov word [eax], bx
add eax, 2
push 0x5c
push edi
mov dword [esp + 0x20], eax
call esi
add esp, 8
test eax, eax
jne 0x42aef3
lea edx, [esp + 0x14]
push edi
push edx
call fcn.0042b350
add esp, 8
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
mov byte [esp + 0x24], 2
je 0x42aed7
cmp dword [ecx - 0xc], ebx
jge 0x42aea9
mov edx, dword [0x4631a4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42aeae
cmp dword [eax - 0xc], ebx
jge 0x42aebe
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x18]
call fcn.00408770
jmp 0x42aed7
lea ecx, [esp + 0x10]
call fcn.00405b60
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00401c80
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp dword [ecx - 8], ebx
jmp 0x42b022
cmp edi, ebx
jne 0x42aefb
xor eax, eax
jmp 0x42af02
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.00408770
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp dword [ecx - 8], ebx
jmp 0x42b022
mov edx, dword [esp + 0x30]
xor ebp, ebp
mov eax, dword [edx - 8]
lea esi, [edi + eax*2]
cmp esi, edi
jb 0x42afe8
mov eax, dword [esp + 0x30]
mov eax, dword [eax - 8]
lea ecx, [edi + eax*2]
cmp esi, ecx
sete bl
cmp word [esi], 0x20
je 0x42af48
test bl, bl
je 0x42af74
test bl, bl
mov ebp, esi
je 0x42af54
mov dword [esp + 0x18], esi
jmp 0x42af60
lea edx, [esi + 2]
mov word [esi], 0
mov dword [esp + 0x18], edx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42af7d
test bl, bl
jne 0x42af74
mov word [esi], 0x20
sub esi, 2
cmp esi, edi
jae 0x42af2f
jmp 0x42afe8
push edi
lea ecx, [esp + 0x18]
call fcn.004171e0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push edi
mov byte [esp + 0x28], 3
call ebx
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x42afcc
push 0x467078
lea ecx, [esp + 0x18]
call fcn.00408d20
push 0x467078
push 0
lea ecx, [esp + 0x1c]
call fcn.0040c820
mov eax, dword [esp + 0x14]
push eax
call ebx
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x42afd6
push edi
lea ecx, [esp + 0x14]
call fcn.00405430
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00401c80
test esi, esi
jne 0x42b029
lea ecx, [esp + 0x14]
xor ebx, ebx
push edi
push ecx
mov word [ebp], bx
call fcn.0042b350
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call fcn.00409c90
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00401c80
mov edx, dword [esp + 0x10]
xor eax, eax
cmp dword [edx - 8], ebx
setne al
cmp eax, ebx
je 0x42b042
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.00405430
push esi
call fcn.00420cb0
add esp, 4
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0040c550
lea ecx, [esp + 0x30]
call fcn.00401c80
lea ecx, [esp + 0x10]
call fcn.00401c80
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [eax - 0xc]
mov esi, dword [esp + 0x28]
lea ecx, [eax - 0xc]
cmp edx, ebx
mov dword [esi], eax
jl 0x42b092
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42b0ac
cmp eax, ebx
mov edi, eax
jne 0x42b09c
xor eax, eax
jmp 0x42b0a3
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.00408770
mov eax, dword [esp + 0xc]
mov ecx, dword [0x4631a4]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42b0db
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42b0db
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.0044bf22
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret