Function at 0x406fd0
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Get common file path
Get file attributes
Get startup folder
Write file to startup folder

Disassembly:
push ebp
lea ebp, [esp - 0x45c]
sub esp, 0x45c
push 0xffffffffffffffff
push 0x423f40
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x42c708]
xor eax, ebp
mov dword [ebp + 0x458], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x44], ebx
mov eax, dword [ebx + 0x120]
sub eax, 0x10
push eax
call fcn.00401910
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x408635
cmp eax, ecx
jg 0x408635
movzx eax, word [esi + eax*2]
cmp ax, 0x5c
je 0x407056
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00402ca0
mov esi, dword [ebp - 0x20]
cmp dword [esi - 0xc], 0
jl 0x4085fc
push 0x425ea4
push esi
call fcn.00413f0f
add esp, 8
test eax, eax
je 0x4085fc
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4085fc
test eax, eax
je 0x4085fc
add eax, 2
mov ecx, dword [esi - 0xc]
js 0x4070b7
cmp eax, ecx
jg 0x4070b7
push 0x425564
lea eax, [esi + eax*2]
push eax
call fcn.00413f0f
add esp, 8
test eax, eax
je 0x4070b7
sub eax, esi
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
jne 0x4070e2
push 0
push 0x425ea0
push 0x425e78
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x408622
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call ebx
cmp eax, 0xffffffff
jne 0x407181
push edi
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00402280
mov ebx, dword [ebp - 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407121
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4072e9
lea eax, [edi + 1]
mov ecx, dword [esi - 0xc]
test eax, eax
jl 0x40714c
cmp eax, ecx
jg 0x40714c
push 0x425564
lea edx, [esi + eax*2]
push edx
call fcn.00413f0f
add esp, 8
test eax, eax
je 0x40714c
sub eax, esi
sar eax, 1
mov edi, eax
jmp 0x40714f
or edi, 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40716b
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_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4070f4
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x42dbf8
mov edx, dword [0x42dbf8]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
push 0x3e8
push 0x3e8
lea ecx, [ebp - 0x2c]
call fcn.00402b10
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401af0
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.00401790
push 0x425564
push eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402280
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403550
lea ecx, [ebp - 0x28]
call fcn.00401c80
lea ecx, [ebp - 0x34]
call fcn.00401c80
push str.temp
lea ecx, [ebp - 0x30]
call fcn.00405530
mov ecx, 0x42dbf8
mov eax, dword [0x42dbf8]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, 0x42dbf8
mov eax, dword [0x42dbf8]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp], 0
push 0x24c
push 0
lea eax, [ebp + 4]
push eax
call fcn.00414400
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00403390
add esp, 0x18
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x28]
call fcn.00401c80
mov esi, dword [ebp - 0x1c]
push esi
call ebx
cmp eax, 0xffffffff
jne 0x407348
lea ecx, [ebp - 0x34]
call fcn.00401ca0
push esi
push str.gb0R
lea ecx, [ebp - 0x34]
push ecx
call fcn.004035d0
add esp, 0xc
push 0
push 0x425ea0
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x34]
call fcn.00401c80
lea ecx, [ebp - 0x1c]
call fcn.00401c80
lea ecx, [ebp - 0x18]
call fcn.00401c80
lea ecx, [ebp - 0x30]
call fcn.00401c80
lea ecx, [ebp - 0x2c]
call fcn.00401c80
lea ecx, [ebp - 0x20]
call fcn.00401c80
xor eax, eax
jmp 0x4085a6
mov ecx, 0x42dbf8
mov edx, dword [0x42dbf8]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 0x425e44
lea ecx, [ebp - 0x30]
push ecx
call fcn.004035d0
add esp, 0xc
push 0
push 0x425ea0
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x30]
call fcn.00401c80
lea ecx, [ebp - 0x34]
call fcn.00401c80
lea ecx, [ebp - 0x20]
call fcn.00401c80
xor eax, eax
jmp 0x4085a6
push 0x4256dc
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x28]
call fcn.00401c80
cmp dword [0x42dacc], 1
jne 0x407847
push 0x42db0c
lea ecx, [ebp - 0x20]
push ecx
call fcn.00401cc0
add esp, 8
test al, al
je 0x407847
mov edx, dword [0x42db0c]
push edx
call ebx
cmp eax, 0xffffffff
je 0x407847
mov eax, dword [ebp - 0x18]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x407847
push 0x21
push str.pencO
push 0x425de0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x407847
push 0x4256dc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x28]
call fcn.00401c80
push 0x4256dc
push 0x42db0c
lea edx, [ebp - 0x28]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x28]
call fcn.00401c80
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
call ebx
push 0x4256c8
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x28]
call fcn.00401c80
push 0x4256c8
push 0x42db0c
lea ecx, [ebp - 0x28]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x28]
call fcn.00401c80
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call ebx
push str.backup_
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x28]
call fcn.00401c80
mov esi, dword [ebp - 0x18]
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call edi
cmp eax, 0xffffffff
jne 0x4074cf
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.backup.
push 0x42db0c
lea eax, [ebp - 0x28]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x28]
call fcn.00401c80
lea ecx, [ebp]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40763f
mov ecx, 0x425570
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40753d
test dx, dx
je 0x407539
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40753d
add eax, 4
add ecx, 4
test dx, dx
jne 0x407517
xor eax, eax
jmp 0x407542
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407624
mov ecx, 0x425568
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407578
test dx, dx
je 0x407574
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407578
add eax, 4
add ecx, 4
test dx, dx
jne 0x407552
xor eax, eax
jmp 0x40757d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407624
lea eax, [ebp + 0x2c]
push eax
push str.backup_
push 0x42db0c
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x28]
call fcn.00401c80
lea ecx, [ebp - 0x3c]
call fcn.00401c80
push 0x425dac
lea ecx, [ebp - 0x34]
call fcn.00403ca0
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x24]
call fcn.00401c80
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x34]
call fcn.00401c80
push 1
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call ebx
lea ecx, [ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x40750f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.res_
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
mov esi, dword [ebp - 0x18]
push esi
call edi
cmp eax, 0xffffffff
jne 0x407679
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.res.
push 0x42db0c
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea edx, [ebp]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4077ec
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
mov ecx, 0x425570
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4076ee
test dx, dx
je 0x4076ea
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4076ee
add eax, 4
add ecx, 4
test dx, dx
jne 0x4076c8
xor eax, eax
jmp 0x4076f3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4077d5
mov ecx, 0x425568
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407729
test dx, dx
je 0x407725
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407729
add eax, 4
add ecx, 4
test dx, dx
jne 0x407703
xor eax, eax
jmp 0x40772e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4077d5
lea ecx, [ebp + 0x2c]
push ecx
push str.res_
push 0x42db0c
lea edx, [ebp - 0x24]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x24]
call fcn.00401c80
push 0x425d88
lea ecx, [ebp - 0x34]
call fcn.00403ca0
lea ecx, [ebp + 0x2c]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00403390
add esp, 0xc
push eax
lea edx, [ebp - 0x3c]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x3c]
call fcn.00401c80
lea ecx, [ebp - 0x28]
call fcn.00401c80
lea ecx, [ebp - 0x34]
call fcn.00401c80
push 1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
lea edx, [ebp]
push edx
push esi
call edi
cmp eax, 1
je 0x4076c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x425d6c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
push 0x425d6c
push 0x42db0c
lea edx, [ebp - 0x14]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
jmp 0x40784d
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], 0
push 0x4256dc
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4078a1
push ecx
mov ecx, esp
lea edx, [ebp - 0x20]
push edx
call fcn.00402260
mov edi, dword [ebp - 0x44]
mov ecx, edi
call fcn.00404700
jmp 0x4078a4
mov edi, dword [ebp - 0x44]
push 0x425768
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
push 0x425d48
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403390
add esp, 0xc
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x24]
call fcn.00401c80
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
test eax, eax
jne 0x40792e
mov dword [ebp - 0x48], 0x425d14
push 0x4299cc
lea edx, [ebp - 0x48]
push edx
call fcn.0041439b
push 0x425cf0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
push 0x425cc8
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403390
add esp, 0xc
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x24]
call fcn.00401c80
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
test eax, eax
jne 0x4079b8
mov dword [ebp - 0x54], 0x425c90
push 0x4299cc
lea edx, [ebp - 0x54]
push edx
call fcn.0041439b
push 0x425c7c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
push 0x425c68
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403390
add esp, 0xc
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x24]
call fcn.00401c80
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
push 0x425c4c
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
push 0x425c2c
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x24]
call fcn.00401c80
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call ebx
push 0x425c10
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
push 0x425bf0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00403390
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x24]
call fcn.00401c80
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call ebx
push 0x425d6c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
push str._template.xml
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403390
add esp, 0xc
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x24]
call fcn.00401c80
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407e1b
push ecx
mov ecx, esp
lea eax, [ebp - 0x18]
push eax
call fcn.00402260
push ecx
mov ecx, esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402260
mov ecx, edi
call fcn.00405fc0
cmp dword [edi + 0x148], 1
jne 0x407c38
lea esi, [edi + 0x128]
push esi
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
push esi
push 0x425564
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x24]
call fcn.00401c80
lea ecx, [ebp - 0x3c]
call fcn.00401c80
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
cmp dword [edi + 0x14c], 1
jne 0x407cce
lea esi, [edi + 0x12c]
push esi
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
push esi
push 0x425564
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x24]
call fcn.00401c80
lea ecx, [ebp - 0x3c]
call fcn.00401c80
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
cmp dword [edi + 0x150], 1
jne 0x407d64
lea esi, [edi + 0x130]
push esi
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
push esi
push 0x425564
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x24]
call fcn.00401c80
lea ecx, [ebp - 0x3c]
call fcn.00401c80
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
push 0x4256dc
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
push 0x425bc0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x24]
call fcn.00401c80
push str.config.xml
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00403410
add esp, 0xc
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407e60
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push esi
cmp eax, 0xffffffff
je 0x407e41
push edi
call ebx
test eax, eax
jne 0x407e60
mov dword [ebp - 0x60], 0x425b94
push 0x4299cc
lea ecx, [ebp - 0x60]
push ecx
call fcn.0041439b
push 0
push esi
mov eax, dword [ebp - 0x1c]
push eax
call ebx
test eax, eax
jne 0x407ba2
mov dword [ebp - 0x58], 0x425b68
push 0x4299cc
lea ecx, [ebp - 0x58]
push ecx
call fcn.0041439b
mov edx, dword [ebp - 0x1c]
push edx
call ebx
test eax, eax
jne 0x407e60
mov dword [ebp - 0x5c], 0x425b44
push 0x4299cc
lea eax, [ebp - 0x5c]
push eax
call fcn.0041439b
push str.res_
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407eb7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407eb7
mov dword [ebp - 0x50], 0x425b34
push 0x4299cc
lea eax, [ebp - 0x50]
push eax
call fcn.0041439b
push str._res.
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x24]
call fcn.00401c80
lea edx, [ebp]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x408065
mov ecx, 0x425570
lea eax, [ebp + 0x2c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407f46
test dx, dx
je 0x407f42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407f46
add eax, 4
add ecx, 4
test dx, dx
jne 0x407f20
xor eax, eax
jmp 0x407f4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40804a
mov ecx, 0x425568
lea eax, [ebp + 0x2c]
jmp 0x407f60
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407f86
test dx, dx
je 0x407f82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407f86
add eax, 4
add ecx, 4
test dx, dx
jne 0x407f60
xor eax, eax
jmp 0x407f8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40804a
lea ecx, [ebp + 0x2c]
push ecx
push str._res_
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00403390
add esp, 0xc
push eax
lea edx, [ebp - 0x24]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
lea ecx, [ebp - 0x24]
call fcn.00401c80
lea ecx, [ebp - 0x3c]
call fcn.00401c80
push 0x425d88
lea ecx, [ebp - 0x34]
call fcn.00403ca0
lea ecx, [ebp + 0x2c]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00403390
add esp, 0xc
push eax
lea edx, [ebp - 0x40]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x40]
call fcn.00401c80
lea ecx, [ebp - 0x38]
call fcn.00401c80
lea ecx, [ebp - 0x34]
call fcn.00401c80
push 1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
lea edx, [ebp]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x407f11
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.sound_
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x38]
call fcn.00401c80
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4080bc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4080bc
mov dword [ebp - 0x4c], 0x425b34
push 0x4299cc
lea edx, [ebp - 0x4c]
push edx
call fcn.0041439b
push str._sound.
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00403390
add esp, 0xc
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x38]
call fcn.00401c80
lea ecx, [ebp - 0x40]
call fcn.00401c80
lea ecx, [ebp]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x408258
mov ecx, 0x425570
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40813e
test dx, dx
je 0x40813a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40813e
add eax, 4
add ecx, 4
test dx, dx
jne 0x408118
xor eax, eax
jmp 0x408143
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40823d
mov ecx, 0x425568
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408179
test dx, dx
je 0x408175
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408179
add eax, 4
add ecx, 4
test dx, dx
jne 0x408153
xor eax, eax
jmp 0x40817e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40823d
lea eax, [ebp + 0x2c]
push eax
push str._sound_
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea edx, [ebp - 0x38]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x38]
call fcn.00401c80
lea ecx, [ebp - 0x40]
call fcn.00401c80
lea ecx, [ebp - 0x14]
call fcn.00401c80
push 0x425ad4
lea ecx, [ebp - 0x34]
call fcn.00403ca0
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x24]
call fcn.00401c80
lea ecx, [ebp - 0x3c]
call fcn.00401c80
lea ecx, [ebp - 0x34]
call fcn.00401c80
push 1
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call ebx
lea ecx, [ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x408110
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
lea edx, [ebp + 0x250]
push edx
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebx + 4]
push eax
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call edi
cmp eax, 1
jne 0x4082f7
lea ecx, [ebp + 0x250]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00403d00
push 0x425abc
lea ecx, [ebp - 0x18]
call fcn.00403d40
push 0x425768
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x38]
call fcn.00401c80
push 1
push ecx
mov ecx, esp
lea edx, [ebp - 0x18]
push edx
call fcn.00402260
push ecx
mov ecx, esp
lea eax, [ebp - 0x1c]
push eax
call fcn.00402260
mov ecx, ebx
call fcn.00402440
test eax, eax
jne 0x4082f7
push eax
push 0x425ea0
push 0x425aa8
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push 7
push 0x401
mov edx, dword [ebx + 4]
push edx
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
call esi
push 0
push 2
lea eax, [ebp + 0x250]
push eax
mov ecx, dword [ebx + 4]
push ecx
call edi
cmp eax, 1
jne 0x408496
lea edx, [ebp + 0x250]
push edx
lea ecx, [ebp - 0x18]
call fcn.00403d00
push 0x425a98
lea ecx, [ebp - 0x18]
call fcn.00403d40
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40835a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x425768
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x38]
call fcn.00401c80
push 1
push ecx
mov edx, esp
push 0x425abc
lea eax, [ebp - 0x18]
push eax
push edx
call fcn.00403410
add esp, 8
mov ecx, esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402260
mov ecx, ebx
call fcn.00402440
push 0x425cf0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x40]
call fcn.00401c80
push 1
push ecx
mov edx, esp
push 0x425a80
lea eax, [ebp - 0x18]
push eax
push edx
call fcn.00403410
add esp, 8
mov ecx, esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402260
mov ecx, ebx
call fcn.00402440
push 0x425c68
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x14]
call fcn.00401c80
push 0
push ecx
mov edx, esp
push 0x425a64
lea eax, [ebp - 0x18]
push eax
push edx
call fcn.00403410
add esp, 8
mov ecx, esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402260
mov ecx, ebx
call fcn.00402440
push 0x425c2c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x24]
call fcn.00401c80
push 1
push ecx
mov edx, esp
push 0x425a48
lea eax, [ebp - 0x18]
push eax
push edx
call fcn.00403410
add esp, 8
mov ecx, esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402260
mov ecx, ebx
call fcn.00402440
push 0
push 3
push 0x401
mov eax, dword [ebx + 4]
push eax
call esi
push 0x425768
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00403410
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403550
lea ecx, [ebp - 0x38]
call fcn.00401c80
push ecx
mov ecx, esp
lea eax, [ebp - 0x18]
push eax
call fcn.00402260
mov ecx, ebx
call fcn.00403990
push 0
push 9
push 0x401
mov ecx, dword [ebx + 4]
push ecx
call esi
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00403390
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403550
lea ecx, [ebp - 0x40]
call fcn.00401c80
push ecx
mov ecx, esp
lea edx, [ebp - 0x1c]
push edx
call fcn.00402260
mov ecx, ebx
call fcn.00403770
cmp dword [ebx + 0x144], 1
jne 0x408553
push 0
push 8
push 0x401
mov eax, dword [ebx + 4]
push eax
call esi
lea edx, [ebx + 0x124]
push ecx
mov ecx, esp
push edx
call fcn.00402260
mov ecx, ebx
call fcn.00402630
push 0
push 5
push 0x401
mov eax, dword [ebx + 4]
push eax
call esi
lea ecx, [ebx + 0x118]
lea edx, [ebp - 0x20]
push edx
call fcn.00403550
lea ecx, [ebp - 0x28]
call fcn.00401c80
lea ecx, [ebp - 0x1c]
call fcn.00401c80
lea ecx, [ebp - 0x18]
call fcn.00401c80
lea ecx, [ebp - 0x30]
call fcn.00401c80
lea ecx, [ebp - 0x2c]
call fcn.00401c80
lea ecx, [ebp - 0x20]
call fcn.00401c80
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x458]
xor ecx, ebp
call fcn.004143e5
add ebp, 0x45c
mov esp, ebp
pop ebp
ret
push 0
push 0x425ea0
push 0x425e78
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40862e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4085a6
push 0x80070057
call fcn.00401000
int3