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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da1fe
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 0x416e8b
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x416e84
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0047f380
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1c
push 0
call esi
test eax, eax
jne 0x416e84
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416e15
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x21a], 0x5c
je 0x416e59
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x416e40
mov eax, dword [0x4f4828]
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 0x416e62
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.00416880
mov edx, dword [ebp - 0x62c]
add esp, 4
mov ecx, dword [ebp - 0x630]
mov eax, edx
sub eax, ecx
cmp eax, 0x10
jb 0x416eea
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.0047ee00
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x416f0b
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 0x416f48
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 0x416f91
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.0047ee00
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x416fb2
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 0x416fe9
test ecx, ecx
je 0x417302
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0047f380
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 0x417020
cmp dword [ebp - 0x68c], 0
push ebx
push 0x4e5954
push 0
push 0
push 0
push 0
je 0x417066
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 0x417078
push 0x1012
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.ole32.dll_StgCreateStorageEx]
test eax, eax
js 0x417302
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.0047f380
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 0x4170d6
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 0x4f4708
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 0x4f9e44
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.004177e0
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x65c]
cmp edx, 8
jb 0x4171ba
mov ecx, dword [ebp - 0x670]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4171b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417364
push edx
push ecx
call fcn.0047cf71
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x674]
cmp edx, 8
jb 0x4171fe
mov ecx, dword [ebp - 0x688]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4171f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417369
push edx
push ecx
call fcn.0047cf71
add esp, 8
mov esi, dword [ebp - 0x648]
lea edi, [esi - 2]
cmp esi, edi
jb 0x41736e
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.0047ee00
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 0x417270
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 0x4172c6
cmp dword [ebx + 4], 0
jne 0x4172c6
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 0x417302
mov ecx, dword [ebp - 0x658]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4172f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417373
push edx
push ecx
call fcn.0047cf71
add esp, 8
mov edx, dword [ebp - 0x62c]
mov esi, dword [ebp - 0x690]
cmp edx, 8
jb 0x417344
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41733a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417378
push edx
push ecx
call fcn.0047cf71
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.0047cf84
mov esp, ebp
pop ebp
ret 8
call fcn.004896ff
call fcn.004896ff
call fcn.0040e2b0
call fcn.004896ff
call fcn.004896ff
int3