Function at 0x442f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3781
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x4e706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20a
lea eax, [ebp - 0x220]
mov dword [ebp - 0x280], str.NTASN1.DLL
push 0
push eax
mov dword [ebp - 0x27c], str.USER32.DLL
mov dword [ebp - 0x278], str.GDI32.DLL
mov dword [ebp - 0x274], str.ADVAPI32.DLL
mov dword [ebp - 0x270], str.SHELL32.DLL
mov dword [ebp - 0x26c], str.OLE32.DLL
mov dword [ebp - 0x268], str.OLEAUT32.DLL
mov dword [ebp - 0x264], str.WINHTTP.DLL
mov dword [ebp - 0x260], str.SHLWAPI.DLL
mov dword [ebp - 0x25c], str.COMCTL32.DLL
mov dword [ebp - 0x258], str.GDIPLUS.DLL
mov dword [ebp - 0x254], str.MPR.DLL
mov dword [ebp - 0x250], str.IPHLPAPI.DLL
mov dword [ebp - 0x24c], str.VERSION.DLL
mov dword [ebp - 0x248], str.WLDP.DLL
mov dword [ebp - 0x244], str.PROFAPI.DLL
mov dword [ebp - 0x240], str.TEXTSHAPING.DLL
mov dword [ebp - 0x23c], str.WEBIO.DLL
mov dword [ebp - 0x238], str.SSPICLI.DLL
mov dword [ebp - 0x234], str.NCRYPT.DLL
mov dword [ebp - 0x230], str.MSASN1.DLL
mov dword [ebp - 0x22c], str.DPAPI.DLL
mov dword [ebp - 0x228], str.DWRITE.DLL
mov dword [ebp - 0x224], str.WINDOWSCODECS.DLL
call fcn.00487250
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4432d6
xor eax, eax
mov dword [ebp - 0x2b8], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x2b4], 7
mov word [ebp - 0x2c8], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x443094
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00407990
push 0xd
push str.KERNEL32.DLL
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 4], 0
call fcn.0040c2d0
cmp dword [ebp - 0x2b4], 8
lea eax, [ebp - 0x2c8]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmovae eax, dword [ebp - 0x2c8]
push eax
call ebx
test eax, eax
je 0x443111
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x443111
push 0x800
call eax
test eax, eax
jne 0x443111
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0x280]
nop word [eax + eax]
mov edx, dword [esi]
xor eax, eax
mov word [ebp - 0x2b0], ax
mov eax, edx
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 7
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x443144
sub eax, edi
lea ecx, [ebp - 0x2b0]
sar eax, 1
push eax
push edx
call fcn.00407990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
xor eax, eax
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
lea edx, [ecx + 2]
mov word [ebp - 0x298], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x443190
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x298]
call fcn.00407990
push 1
push 0x4ce774
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 2
call fcn.0040c2d0
cmp dword [ebp - 0x29c], 8
lea eax, [ebp - 0x2b0]
push dword [ebp - 0x2a0]
cmovae eax, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x298]
push eax
call fcn.0040c2d0
cmp dword [ebp - 0x284], 8
lea eax, [ebp - 0x298]
cmovae eax, dword [ebp - 0x298]
push eax
call ebx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x284]
cmp edx, 8
jb 0x443249
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44323f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4432f2
push edx
push ecx
call fcn.0046f0d0
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x29c]
cmp edx, 8
jb 0x443289
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44327f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4432f2
push edx
push ecx
call fcn.0046f0d0
add esp, 8
add esi, 4
lea eax, [ebp - 0x220]
cmp esi, eax
jne 0x443120
mov edx, dword [ebp - 0x2b4]
cmp edx, 8
jb 0x4432d6
mov ecx, dword [ebp - 0x2c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4432cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4432f2
push edx
push ecx
call fcn.0046f0d0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ebaf
mov esp, ebp
pop ebp
ret
call fcn.0048a05c
int3