Function at 0x456a03
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
xor ecx, ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
test edi, edi
jne 0x456a4c
mov eax, 0x80004003
jmp 0x456e5c
push ecx
push 5
xor ecx, ecx
pop ebx
call fcn.0044100b
test eax, eax
jne 0x456a61
inc eax
jmp 0x456e5c
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push edi
push 0x4227b0
push 4
pop esi
call fcn.00440126
add esp, 0xc
xor esi, esi
push esi
push esi
push esi
mov ecx, edi
call fcn.0044287a
test eax, eax
jns 0x456aa7
push eax
push edi
push 0x4227ec
push 2
pop esi
call fcn.00440126
add esp, 0xc
mov eax, 0x80004005
jmp 0x456e5c
lea edi, reloc.ADVAPI32.dll_TraceMessage
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
call fcn.0045c1c5
test eax, eax
jne 0x456b2b
call ebx
mov edi, eax
test edi, edi
jne 0x456ae1
push 0x57
pop edi
test edi, edi
jle 0x456aef
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x456af8
mov edi, 0x80004005
push edi
push dword [ebp - 0x420]
push 0x422828
push 2
pop esi
call fcn.00440126
add esp, 0xc
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x456b24
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
jmp 0x456e5c
push esi
push 0x404bd0
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [ebp - 0x440]
test eax, eax
jne 0x456b6f
call ebx
mov ebx, eax
test ebx, ebx
jne 0x456b4f
push 0x57
pop ebx
test ebx, ebx
jle 0x456b5d
and ebx, 0xffff
or ebx, 0x80070000
test ebx, ebx
js 0x456e12
mov ebx, 0x8007000d
jmp 0x456e12
mov edx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
lea eax, reloc.ADVAPI32.dll_TraceMessage
mov ebx, esi
call fcn.00455ab4
test eax, eax
jne 0x456ba4
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
je 0x456b9a
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x8000ffff
jmp 0x456e5c
lea eax, reloc.ADVAPI32.dll_TraceMessage
test eax, eax
je 0x456bb5
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push dword [ebp - 0x420]
mov eax, 0x104
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8f1
mov eax, edi
push eax
call fcn.00440bc3
test eax, eax
jne 0x456bf5
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
je 0x456beb
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x80070002
jmp 0x456e5c
push 0x422880
push 4
call fcn.004400fc
push 0x208
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
pop ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
test eax, eax
je 0x456dcb
push eax
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0045583e
test eax, eax
js 0x456da4
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x4000
je 0x456ca6
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.00440205
xor esi, esi
test eax, eax
je 0x456c92
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [ebp - 0x42c]
test eax, eax
jne 0x456c92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x41da00
push 2
pop esi
call fcn.00440126
add esp, 0xc
xor esi, esi
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
je 0x456ca6
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
push dword [ebp - 0x444]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push dword [ebp - 0x424]
call dword [ebp - 0x434]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x420]
push 0x4228d8
push 4
pop esi
call fcn.00440126
add esp, 0xc
cmp dword [0x46926c], ebx
jne 0x456da2
push 0x103
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov dword [0x46926c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
test eax, eax
je 0x456da4
push 0x422908
mov eax, 0x104
lea edi, reloc.ADVAPI32.dll_TraceMessage
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
call fcn.0042c8f1
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea edx, reloc.ADVAPI32.dll_TraceMessage
mov ecx, edi
call fcn.00441bda
test eax, eax
jne 0x456da4
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea edx, reloc.ADVAPI32.dll_TraceMessage
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.00441bda
test eax, eax
jne 0x456da4
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
cmp eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
jne 0x456d92
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
cmp eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
je 0x456da4
xor eax, eax
inc eax
mov dword [0x46926c], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
jmp 0x456da4
xor esi, esi
push dword [ebp - 0x444]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
pop ecx
test eax, eax
je 0x456dcb
push esi
push eax
push dword [ebp - 0x424]
call dword [ebp - 0x438]
jmp 0x456e05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x456de5
and ebx, 0xffff
or ebx, 0x80070000
test ebx, ebx
js 0x456dec
mov ebx, 0x8007000d
push ebx
push dword [ebp - 0x420]
push 0x422980
push 2
pop esi
call fcn.00440126
add esp, 0xc
xor esi, esi
push esi
push dword [ebp - 0x424]
call dword [ebp - 0x43c]
push ebx
push dword [ebp - 0x420]
push 0x4229b4
push 4
pop esi
call fcn.00440126
add esp, 0xc
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x456e45
push dword [ebp - 0x420]
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
call fcn.00456a03
mov ebx, eax
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x456e5a
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret 4