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

Disassembly:
push 0xffffffffffffffff
push 0x4db708
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], 0
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.004509e0
test al, al
jne 0x450ead
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450e82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450ea6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x45118b
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x30], 2
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
mov bl, 3
push edx
mov byte [esp + 0x38], bl
call fcn.00450b50
test al, al
jne 0x450f4c
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450f1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450e5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x450e5d
lea eax, [esp + 0x20]
lea edi, [esp + 0x14]
call fcn.004082a0
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x30], 4
mov ebp, dword [esp + 0x14]
cmp dword [ebp - 0xc], 0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x450f95
push ebp
call edi
test eax, eax
setne al
test al, al
jne 0x4510c9
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.004508a0
test al, al
jne 0x450fe9
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x14]
call fcn.004082a0
lea ecx, [esp + 0x1c]
call fcn.00405f50
lea ecx, [esp + 0x20]
call fcn.00405f50
lea ecx, [esp + 0x24]
call fcn.00405f50
lea ecx, [esp + 0x18]
call fcn.00405f50
lea ecx, [esp + 0x14]
call fcn.00405f50
xor al, al
jmp 0x45118b
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x4510a7
push eax
call edi
test eax, eax
setne al
test al, al
je 0x4510a7
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x14]
call fcn.004082a0
lea ecx, [esp + 0x14]
lea eax, [esp + 0x1c]
call fcn.0046bad0
test al, al
jne 0x451075
lea eax, [esp + 0x24]
lea edi, [esp + 0x14]
call fcn.004082a0
lea ecx, [esp + 0x14]
lea eax, [esp + 0x1c]
call fcn.0046bad0
lea ecx, [esp + 0x1c]
mov bl, al
call fcn.00405f50
lea ecx, [esp + 0x20]
call fcn.00405f50
lea ecx, [esp + 0x24]
call fcn.00405f50
lea ecx, [esp + 0x18]
call fcn.00405f50
lea ecx, [esp + 0x14]
call fcn.00405f50
mov al, bl
jmp 0x45118b
lea ecx, [esp + 0x1c]
call fcn.00405f50
lea ecx, [esp + 0x20]
call fcn.00405f50
lea ecx, [esp + 0x24]
call fcn.00405f50
lea ecx, [esp + 0x18]
call fcn.00405f50
lea ecx, [esp + 0x14]
call fcn.00405f50
jmp 0x451189
lea eax, [esp + 0x18]
push eax
call fcn.0046b750
add esp, 4
test eax, eax
jne 0x450fb5
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x14]
jmp 0x45102d
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x14]
call fcn.004082a0
lea eax, [esi - 0x10]
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4510f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45111b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451140
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451165
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451189
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8