Function at 0x4168e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9fce
mov eax, dword fs:[0]
push eax
sub esp, 0x68c
mov eax, dword [0x50d080]
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
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x698], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x694], 0
mov dword [ebp - 0x690], 0
mov dword [ebx + 4], eax
mov dword [ebp - 4], 0
xor eax, eax
mov ecx, str.shell32.dll
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
mov dword [ebp - 0x694], 2
call fcn.0040f280
mov edi, eax
mov dword [ebp - 0x68c], edi
test edi, edi
je 0x416a3b
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x416a34
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0047f1d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1c
push 0
call esi
test eax, eax
jne 0x416a34
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4169c5
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x21a], 0x5c
je 0x416a09
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4169f0
mov eax, dword [0x4f48e8]
mov dword [edi], eax
mov edi, dword [ebp - 0x68c]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416a12
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x640]
call fcn.00410170
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 1
push eax
call fcn.00416430
mov edx, dword [ebp - 0x62c]
add esp, 4
mov ecx, dword [ebp - 0x630]
mov eax, edx
sub eax, ecx
cmp eax, 0x10
jb 0x416a9a
cmp edx, 8
lea esi, [ebp - 0x640]
push 0x20
cmovae esi, dword [ebp - 0x640]
lea edi, [ecx + 0x10]
push str.SpreadsheetTools
mov dword [ebp - 0x630], edi
lea eax, [esi + ecx*2]
push eax
call fcn.0047ec50
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x416abb
push 0x10
push str.SpreadsheetTools
mov byte [ebp - 0x68c], 0
lea ecx, [ebp - 0x640]
push dword [ebp - 0x68c]
push 0x10
call fcn.0040a8f0
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416af8
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
push 0
cmovae eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x62c]
mov eax, edx
mov ecx, dword [ebp - 0x630]
sub eax, ecx
cmp eax, 0xc
jb 0x416b41
cmp edx, 8
lea esi, [ebp - 0x640]
push 0x18
cmovae esi, dword [ebp - 0x640]
lea edi, [ecx + 0xc]
push str.Runtime.dll
mov dword [ebp - 0x630], edi
lea eax, [esi + ecx*2]
push eax
call fcn.0047ec50
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x416b62
push 0xc
push str.Runtime.dll
mov byte [ebp - 0x68c], 0
lea ecx, [ebp - 0x640]
push dword [ebp - 0x68c]
push 0xc
call fcn.0040a8f0
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x68c], ecx
je 0x416b99
test ecx, ecx
je 0x416eb2
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0047f1d0
add esp, 0xc
lea ecx, [ebp - 0x640]
cmp dword [ebp - 0x62c], 8
lea edx, [ebp - 0x420]
cmovae ecx, dword [ebp - 0x640]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x416bd0
cmp dword [ebp - 0x68c], 0
push ebx
push 0x4e5a14
push 0
push 0
push 0
push 0
je 0x416c16
xor eax, eax
cmp dword [ebx + 4], eax
sete al
lea eax, [eax*2 + 0x10]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.ole32.dll_StgOpenStorageEx]
jmp 0x416c28
push 0x1012
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.ole32.dll_StgCreateStorageEx]
test eax, eax
js 0x416eb2
xor eax, eax
cmp dword [ebx + 4], eax
push 0x208
sete al
push 0
lea eax, [eax*2 + 0x10]
mov dword [ebp - 0x68c], eax
lea eax, [ebp - 0x628]
push eax
call fcn.0047f1d0
mov edx, dword [ebp - 0x698]
add esp, 0xc
add edx, 2
mov dword [ebp - 0x648], 0
mov ecx, edx
mov dword [ebp - 0x644], 7
xor eax, eax
mov word [ebp - 0x658], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416c86
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x658]
call fcn.00410170
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x4f47c8
lea ecx, [ebp - 0x688]
mov dword [ebp - 0x678], 0
mov dword [ebp - 0x674], 7
mov word [ebp - 0x688], ax
call fcn.00410170
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x670]
push 1
xor eax, eax
mov dword [ebp - 0x660], 0
push 0x4f9f04
mov dword [ebp - 0x65c], 7
mov word [ebp - 0x670], ax
call fcn.00410170
lea eax, [ebp - 0x688]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x670]
lea ecx, [ebp - 0x658]
call fcn.00417390
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x65c]
cmp edx, 8
jb 0x416d6a
mov ecx, dword [ebp - 0x670]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416d60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416f14
push edx
push ecx
call fcn.0047cdbf
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x674]
cmp edx, 8
jb 0x416dae
mov ecx, dword [ebp - 0x688]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416da4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416f19
push edx
push ecx
call fcn.0047cdbf
add esp, 8
mov esi, dword [ebp - 0x648]
lea edi, [esi - 2]
cmp esi, edi
jb 0x416f1e
mov eax, esi
mov edx, 2
sub eax, edi
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x644], 8
lea eax, [ebp - 0x658]
cmovae eax, dword [ebp - 0x658]
sub esi, edx
mov dword [ebp - 0x648], esi
sub esi, edi
lea ecx, [eax + edi*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.0047ec50
add esp, 0xc
lea ecx, [ebp - 0x658]
cmp dword [ebp - 0x644], 8
lea edx, [ebp - 0x628]
cmovae ecx, dword [ebp - 0x658]
sub edx, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x416e20
mov eax, dword [ebx]
lea edx, [ebp - 0x690]
push edx
push 0
push dword [ebp - 0x68c]
mov ecx, dword [eax]
lea edx, [ebp - 0x628]
push 0
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x416e76
cmp dword [ebx + 4], 0
jne 0x416e76
mov eax, dword [ebx]
lea edx, [ebp - 0x690]
push edx
push 0
push 0
mov ecx, dword [eax]
lea edx, [ebp - 0x628]
push 0x11
push edx
push eax
call dword [ecx + 0xc]
mov edx, dword [ebp - 0x644]
cmp edx, 8
jb 0x416eb2
mov ecx, dword [ebp - 0x658]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416ea8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416f23
push edx
push ecx
call fcn.0047cdbf
add esp, 8
mov edx, dword [ebp - 0x62c]
mov esi, dword [ebp - 0x690]
cmp edx, 8
jb 0x416ef4
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416eea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416f28
push edx
push ecx
call fcn.0047cdbf
add esp, 8
mov eax, esi
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.0047cdd2
mov esp, ebp
pop ebp
ret 8
call fcn.0048954f
call fcn.0048954f
call fcn.0040e2b0
call fcn.0048954f
call fcn.0048954f
int3