Function at 0x41fc80
Capabilities:
Access peb ldr_data
Check if file exists
Create directory
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a803c
mov eax, dword fs:[0]
push eax
sub esp, 0x598
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x590], eax
push ebx
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x5a8]
mov dword fs:[0], eax
xor edi, edi
mov esi, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
mov dword [esp + 0x5b0], edi
mov eax, dword [0x4da734]
mov edx, dword [eax + 0xc]
mov ecx, 0x4da734
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x5b0], 1
mov eax, dword [0x4da734]
mov edx, dword [eax + 0xc]
mov ecx, 0x4da734
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edi
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x28], edi
push 0x206
lea eax, [esp + 0x39a]
push 0
mov byte [esp + 0x5b8], 2
push eax
mov word [esp + 0x3a0], 0
call int.0048bd10
mov edx, dword [esi + 4]
add esp, 0xc
push 1
push 0x1a
lea ecx, [esp + 0x39c]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41fda7
lea eax, [esp + 0x394]
push eax
push 0x4b74d8
lea edi, [esp + 0x30]
call fcn.0040e820
mov edi, dword [esp + 0x30]
add esp, 8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fda7
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x30], esp
mov dword [esp + 0x14], esp
call fcn.0040d0b0
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
call fcn.00466050
add esp, 4
cmp dword [esi + 0x408], 0
je 0x41fdba
mov dword [esi + 0x994], 0
mov edx, dword [esi + 0x994]
push edx
push 0x4b7528
push 0x4b7578
call fcn.00474370
push eax
call fcn.004743e0
lea eax, [edi - 0x10]
lea esi, [ebx - 0x10]
add esp, 0x10
cmp eax, esi
mov dword [esp + 0x34], eax
je 0x41fe2d
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41fe1c
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x41fe1c
call fcn.0040d0b0
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x41fe13
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea ebx, [edi + 0x10]
mov dword [esp + 0x24], ebx
jmp 0x41fe2d
mov ebx, dword [edi - 0xc]
push edi
lea eax, [esp + 0x28]
call fcn.0040cfc0
mov ebx, dword [esp + 0x24]
cmp dword [ebx - 0xc], 0
jne 0x41fe6e
lea eax, [esp + 0x30]
push eax
call fcn.00489d27
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x440]
add esp, 4
push ecx
push eax
push 0x4b75a4
lea edi, [esp + 0x30]
call fcn.0040e820
mov ebx, dword [esp + 0x30]
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea edi, [ebx - 0x10]
mov dword [esp + 0x2c], edi
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x41fe99
cmp eax, dword [edi]
jne 0x41fe99
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41fed5
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x41feb2
jmp fcn.0040d750
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [edi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.004883f0
add esp, 0x10
add esi, 0x10
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x1c]
add eax, 0x4cc
mov byte [esp + 0x5b0], 3
mov esi, dword [eax]
sub esi, 0x10
cmp edi, esi
mov dword [esp + 0x10], eax
je 0x41ff42
cmp dword [esi + 0xc], 0
jl 0x41ff33
mov edx, dword [edi]
cmp edx, dword [esi]
jne 0x41ff33
mov eax, edi
call fcn.0040d0b0
mov edi, eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ff28
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x10]
add edi, 0x10
mov dword [ecx], edi
jmp 0x41ff42
mov eax, dword [ebx - 0xc]
push ebx
mov ebx, eax
mov eax, dword [esp + 0x14]
call fcn.0040cfc0
mov edx, dword [0x4da734]
mov eax, dword [edx + 0xc]
mov ecx, 0x4da734
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
mov ebx, 0x4b75c0
mov byte [esp + 0x5b8], 4
call fcn.004390e0
add esp, 8
mov byte [esp + 0x5b0], 5
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp eax, ebx
je 0x41ffd2
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x41ffc1
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x41ffc1
call fcn.0040d0b0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41ffb8
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x41ffd2
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.0040cfc0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x5b0], 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fffa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420024
call fcn.00469480
test eax, eax
je 0x420024
mov edx, dword [0x4d8c7c]
push 0
mov ecx, esi
call fcn.00465160
add esp, 4
test eax, eax
jne 0x420047
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x3f4]
push 0x8d
push edx
mov ecx, 0x4b7460
mov edx, esi
call fcn.00465010
add esp, 8
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ebx, 0x4b75e4
call fcn.004390e0
add esp, 8
mov byte [esp + 0x5b0], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp eax, ebx
je 0x4200b8
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x4200a7
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x4200a7
call fcn.0040d0b0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x42009e
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x4200b8
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.0040cfc0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x5b0], 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4200e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42010a
call fcn.00469480
test eax, eax
je 0x42010a
mov edx, dword [0x4d8c84]
push 0
mov ecx, esi
call fcn.00465160
add esp, 4
test eax, eax
jne 0x42012d
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x3f4]
push 0x8e
push edx
mov ecx, 0x4b7460
mov edx, esi
call fcn.00465010
add esp, 8
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ebx, 0x4b75fc
call fcn.004390e0
add esp, 8
mov byte [esp + 0x5b0], 7
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp eax, ebx
je 0x42019e
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x42018d
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x42018d
call fcn.0040d0b0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x420184
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x42019e
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.0040cfc0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x5b0], 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4201c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4201f0
call fcn.00469480
test eax, eax
je 0x4201f0
mov edx, dword [0x4d8c6c]
push 0
mov ecx, esi
call fcn.00465160
add esp, 4
test eax, eax
jne 0x420213
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x3f4]
push 0x8c
push edx
mov ecx, 0x4b7460
mov edx, esi
call fcn.00465010
add esp, 8
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ebx, 0x4b7618
call fcn.004390e0
add esp, 8
mov byte [esp + 0x5b0], 8
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp eax, ebx
je 0x420284
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x420273
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x420273
call fcn.0040d0b0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x42026a
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x420284
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.0040cfc0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x5b0], 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4202ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4202da
call fcn.00469480
test eax, eax
je 0x4202da
mov edx, dword [0x4d8c74]
push 0
mov ecx, esi
call fcn.00465160
add esp, 4
test eax, eax
jne 0x420366
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x3f4]
push 0x8f
push ecx
mov ecx, 0x4b7634
mov edx, esi
call fcn.00465010
add esp, 8
test eax, eax
mov dword [esp + 0x20], eax
jne 0x42030c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420366
mov ebx, dword [edi + 0x958]
add edi, 0x958
lea eax, [esi - 0x10]
sub ebx, 0x10
cmp eax, ebx
je 0x420366
cmp dword [ebx + 0xc], 0
jl 0x42035b
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x42035b
call fcn.0040d0b0
mov dword [esp + 0x10], eax
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x420350
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x10]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x420366
mov ebx, dword [esi - 0xc]
push esi
mov eax, edi
call fcn.0040cfc0
test esi, esi
je 0x420480
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
cmp ebx, 0x80010106
je 0x42038c
test ebx, ebx
jl 0x4203ac
lea edi, [esp + 0x10]
call fcn.004595c0
test eax, eax
jl 0x4203ac
mov edx, dword [esp + 0x10]
push 0x4b763c
push esi
push edx
call fcn.004597a0
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4203bc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test ebx, ebx
jl 0x4203c6
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
cmp ebx, 0x80010106
je 0x4203e4
test ebx, ebx
jl 0x420409
push 0
lea edi, [esp + 0x14]
call fcn.00459650
add esp, 4
test eax, eax
jl 0x420409
mov eax, dword [esp + 0x10]
push 0x4b763c
push esi
push eax
call fcn.004597a0
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x420419
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test ebx, ebx
jl 0x420423
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
cmp ebx, 0x80010106
je 0x420441
test ebx, ebx
jl 0x420466
push 1
lea edi, [esp + 0x14]
call fcn.00459650
add esp, 4
test eax, eax
jl 0x420466
mov eax, dword [esp + 0x10]
push 0x4b763c
push esi
push eax
call fcn.004597a0
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x420476
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test ebx, ebx
jl 0x420480
call dword [sym.imp.ole32.dll_CoUninitialize]
test byte [0x4dbefc], 1
jne 0x4204f5
or dword [0x4dbefc], 1
mov byte [esp + 0x5b0], 9
xor eax, eax
mov ecx, 0x4dbec4
mov dword [0x4dbec0], 0x4c3f4c
mov dword [0x4dbec4], eax
mov dword [0x4dbec8], eax
mov dword [0x4dbecc], eax
mov dword [0x4dbed0], eax
mov dword [0x4dbed4], eax
mov dword [0x4dbed8], eax
call fcn.00401170
test eax, eax
jge 0x4204d6
push eax
call fcn.00401050
push 0x4ac3b0
mov dword [0x4dbedc], 0
call fcn.0048858f
add esp, 4
mov byte [esp + 0x5b0], 4
push 0x4b7528
push 0x4b7658
push 0x4dbec0
call fcn.004743e0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ebx, 0x4b75fc
call fcn.004390e0
add esp, 8
mov byte [esp + 0x5b0], 0xa
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp eax, ebx
je 0x42057d
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x42056c
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x42056c
call fcn.0040d0b0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x420563
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x42057d
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.0040cfc0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x5b0], 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4205a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov ebx, dword [esp + 0x1c]
mov dword [ebx + 0x420], eax
je 0x4206b6
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4205cf
xor edi, edi
jmp 0x4205d3
call eax
mov edi, eax
test edi, edi
mov dword [ebx + 0x424], edi
je 0x4206b6
push 0x334
lea ecx, [esp + 0x60]
push 0
push ecx
call int.0048bd10
mov dword [esp + 0x60], 0x5de
mov dword [esp + 0x64], 1
mov edx, dword [edi]
mov edx, dword [edx]
add esp, 0xc
lea eax, [esp + 0x54]
push eax
mov ecx, edi
call edx
test eax, eax
jne 0x420643
add esi, 0xfffffff0
mov byte [esp + 0x5b0], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4206da
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x4206da
mov ecx, dword [ebx + 0x424]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [ebx + 0x3cc]
push eax
call edx
mov ecx, dword [ebx + 0x424]
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
push 1
call edx
mov ecx, dword [ebx + 0x424]
mov eax, dword [ecx]
mov edx, dword [0x4dbcec]
mov eax, dword [eax + 0x1c]
push edx
call eax
mov eax, dword [0x4dbce4]
test eax, eax
jbe 0x420693
mov ecx, dword [ebx + 0x424]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x20]
push 0
call eax
mov eax, dword [0x4dbce8]
test eax, eax
jbe 0x4206ae
mov ebx, dword [ebx + 0x424]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x20]
push 1
mov ecx, ebx
call eax
mov dword [esp + 0x20], 1
add esi, 0xfffffff0
mov byte [esp + 0x5b0], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4206da
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x5b0], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420702
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4b7528
push 0x4b7698
call fcn.00474370
push eax
call fcn.004743e0
mov eax, dword [esp + 0x40]
add esp, 0xc
mov byte [esp + 0x5b0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42073f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x5b0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420764
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x50], 8
jb 0x420778
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00487c06
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x5a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x590]
xor ecx, esp
call fcn.00488fa3
mov esp, ebp
pop ebp
ret