Function at 0x404da0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5754f1
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x628f58]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x70], 0
xor eax, eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push 0x604db0
mov word [ecx], ax
call fcn.00402df0
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x60], esp
xor eax, eax
push 9
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.bContinue
mov word [ecx], ax
call fcn.00402df0
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
xor eax, eax
push 0x28
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x604e98
mov word [ecx], ax
call fcn.00402df0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00404b50
lea ecx, [ebp - 0x40]
add esp, 0x48
cmp ecx, eax
je 0x404ea1
movups xmm0, xmmword [eax]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x30], xmm0
mov word [eax], cx
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x404edb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404ed1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405308
push edx
push ecx
call fcn.0054a587
add esp, 8
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
push 0x604db0
mov word [edi], ax
call fcn.00402df0
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x404f95
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
xor ecx, ecx
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x5c], ecx
jbe 0x404f8c
xor esi, esi
mov eax, dword [ebp - 0x6c]
cmp dword [eax + esi + 8], 0
jne 0x404f62
lea ecx, [ebp - 0x64]
push ecx
push dword [eax + esi]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x404f8c
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x6c]
cmp dword [eax + esi + 8], 1
jne 0x404f80
lea ecx, [ebp - 0x64]
push ecx
push dword [eax + esi]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x404f8c
mov ecx, dword [ebp - 0x60]
inc ecx
add esi, 0xc
mov dword [ebp - 0x60], ecx
cmp ecx, dword [ebp - 0x5c]
jb 0x404f44
push dword [ebp - 0x6c]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov esi, dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
lea eax, [ebp - 0x68]
push eax
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0x1000
call esi
mov eax, dword [ebp - 0x68]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004107c7
mov ecx, eax
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x60], ecx
push eax
push 0
push ecx
call fcn.00550660
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x60]
push dword [ebp - 0x64]
call esi
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x404ffb
cmp eax, 0xffffffff
je 0x404ffb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x60]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405017
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402df0
push esi
mov dword [ebp - 0x70], 3
call fcn.004107c2
lea eax, [ebp - 0x28]
add esp, 4
cmp edi, eax
je 0x4050a1
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x405080
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x405076
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405308
mov eax, edx
push ecx
push eax
call fcn.0054a587
add esp, 8
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
jmp 0x4050db
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4050db
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4050d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40530d
push edx
push ecx
call fcn.0054a587
add esp, 8
push 0x604ef0
mov ecx, edi
call fcn.00402930
push str.Foxit_Software_
mov ecx, edi
call fcn.00402930
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4050fd
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40511b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x405112
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 6
lea esi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae esi, dword [ebp - 0x40]
cmp dword [ebp - 0x30], 1
jne 0x405165
mov ecx, 0x604eec
lea edx, [eax + 1]
sub esi, ecx
nop
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x405165
add ecx, 2
sub edx, 1
jne 0x405150
mov cl, 1
jmp 0x405167
xor cl, cl
test cl, cl
mov edx, 0xa
mov eax, 7
lea ecx, [ebp - 0x58]
cmove eax, edx
mov edx, str.Classic
push eax
mov eax, str.Continuous
cmovne eax, edx
push eax
call fcn.00402df0
push 0x604c34
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.004029b0
add esp, 4
mov byte [ebp - 4], 7
mov esi, eax
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x5c], eax
jb 0x4051b4
mov esi, dword [eax]
mov dword [ebp - 0x5c], esi
mov ecx, dword [eax + 0x10]
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
sub eax, edx
cmp ecx, eax
ja 0x4051f4
cmp dword [edi + 0x14], 8
lea eax, [edx + ecx]
mov dword [ebp - 0x60], eax
mov esi, edi
mov dword [edi + 0x10], eax
jb 0x4051d6
mov esi, dword [edi]
lea eax, [ecx + ecx]
push eax
push dword [ebp - 0x5c]
lea eax, [esi + edx*2]
push eax
call fcn.0054f810
mov eax, dword [ebp - 0x60]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x405205
push ecx
push esi
mov byte [ebp - 0x5c], 0
push dword [ebp - 0x5c]
push ecx
mov ecx, edi
call fcn.00402ab0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40523f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405235
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405312
push edx
push ecx
call fcn.0054a587
add esp, 8
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x405249
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405267
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40525e
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4052a1
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405297
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405317
push edx
push ecx
call fcn.0054a587
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], 7
cmp eax, 8
jb 0x4052eb
mov edx, dword [ebp - 0x40]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4052e1
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40531c
push ecx
push edx
call fcn.0054a587
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054a576
mov esp, ebp
pop ebp
ret
call fcn.00554319
call fcn.00554319
call fcn.00554319
call fcn.00554319
call fcn.00554319
int3