Function at 0x44ad90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e9bbd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x512054]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x2d8]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0044a700
mov esi, eax
test esi, esi
je 0x44af5d
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
push ebx
mov ecx, esi
call edx
mov ebp, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
push ebx
mov ecx, esi
call edx
mov edi, eax
test edi, edi
je 0x44af5d
mov eax, dword [edi]
mov edx, dword [eax + 0x5c]
mov ecx, edi
call edx
test eax, eax
je 0x44af87
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call edx
mov esi, eax
mov dword [esp + 0x2e0], 0
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call edx
push 0
push 1
mov byte [esp + 0x2e8], 1
mov esi, dword [esi]
mov eax, dword [eax]
push 0
push esi
push eax
push 0
push 0
call fcn.00448a00
add esp, 0x1c
test eax, eax
mov byte [esp + 0x2e0], 0
mov eax, dword [esp + 0x18]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ae83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2e0], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44aeae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x44afbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
je 0x44afbe
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call edx
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00406e40
test esi, esi
je 0x44af5d
lea esi, [esp + 0x18]
call fcn.00406e80
mov ebx, 2
mov dword [esp + 0x2e0], ebx
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call edx
mov byte [esp + 0x2e0], 3
mov eax, dword [eax]
push eax
push str.shell32.dll_OpenAs_RunDLL__s
mov edi, esi
call fcn.00406e20
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2e0], bl
call fcn.00406e40
mov ecx, dword [esp + 0x18]
push 0
push 1
push 0
push ecx
push str.rundll32.exe
push 0
push 0
call fcn.00448a00
add esp, 0x1c
mov ecx, esi
call fcn.00406e40
xor eax, eax
mov ecx, dword [esp + 0x2d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.004c961b
add esp, 0x2d0
ret
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
cmp eax, 4
jne 0x44afc5
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call edx
mov dword [esp + 0x2e0], 4
mov ecx, dword [eax]
call fcn.00448b20
lea ecx, [esp + 0x1c]
call fcn.00406e40
mov eax, 1
jmp 0x44af5f
mov eax, dword [edi]
mov edx, dword [eax + 0x64]
push 1
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call edx
cmp byte [esp + 0x24], 0
je 0x44af5d
lea eax, [esp + 0x26]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44affd
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
cmp eax, 5
jne 0x44af5d
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
cmp eax, 2
jne 0x44b068
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2a]
call fcn.00406bd0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2e0], 5
call fcn.00448de0
lea ecx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0x2e0], 0xffffffff
call fcn.00406e40
test esi, esi
je 0x44af5d
push ebp
push ebx
lea ecx, [esp + 0x2e]
call fcn.004490a0
test eax, eax
je 0x44af5d
mov eax, 1
jmp 0x44af5f
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
cmp eax, 3
jne 0x44b0aa
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2a]
call fcn.00406bd0
lea ecx, [esp + 0x20]
mov dword [esp + 0x2e0], 6
call fcn.00448fd0
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.00406e40
mov eax, esi
jmp 0x44af5f
push 0
push 1
push 0
lea edx, [esp + 0x27a]
push edx
lea eax, [esp + 0x36]
push eax
push 0
push 0
call fcn.00448a00
add esp, 0x1c
mov eax, 1
jmp 0x44af5f