Function at 0x406c20
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 0x4226e0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x42a718]
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 - 0x40], ebx
mov eax, dword [ebx + 0x120]
sub eax, 0x10
push eax
call fcn.00401950
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 0x40825b
cmp eax, ecx
jg 0x40825b
movzx eax, word [esi + eax*2]
cmp ax, 0x5c
je 0x406ca6
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00402ce0
mov esi, dword [ebp - 0x20]
cmp dword [esi - 0xc], 0
jl 0x408222
push 0x423f3c
push esi
call fcn.004128cc
add esp, 8
test eax, eax
je 0x408222
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x408222
test eax, eax
je 0x408222
add eax, 2
mov ecx, dword [esi - 0xc]
js 0x406d07
cmp eax, ecx
jg 0x406d07
push 0x423558
lea eax, [esi + eax*2]
push eax
call fcn.004128cc
add esp, 8
test eax, eax
je 0x406d07
sub eax, esi
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
jne 0x406d32
push 0
push 0x423f38
push 0x423f10
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 0x408248
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call ebx
cmp eax, 0xffffffff
jne 0x406dd1
push edi
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00402240
mov ebx, dword [ebp - 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406d71
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406f39
lea eax, [edi + 1]
mov ecx, dword [esi - 0xc]
test eax, eax
jl 0x406d9c
cmp eax, ecx
jg 0x406d9c
push 0x423558
lea edx, [esi + eax*2]
push edx
call fcn.004128cc
add esp, 8
test eax, eax
je 0x406d9c
sub eax, esi
sar eax, 1
mov edi, eax
jmp 0x406d9f
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 0x406dbb
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 0x406d44
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x42bbe0
mov edx, dword [0x42bbe0]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push 0x3e8
push 0x3e8
lea ecx, [ebp - 0x30]
call fcn.00402c30
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.00401af0
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.004017d0
push 0x423558
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00402240
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x30]
call fcn.00403590
lea ecx, [ebp - 0x2c]
call fcn.00401c40
lea ecx, [ebp - 0x38]
call fcn.00401c40
push str.temp
lea ecx, [ebp - 0x34]
call fcn.004052c0
mov ecx, 0x42bbe0
mov eax, dword [0x42bbe0]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, 0x42bbe0
mov eax, dword [0x42bbe0]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp], 0
push 0x24c
push 0
lea eax, [ebp + 4]
push eax
call fcn.00412ba0
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.004033d0
add esp, 0x18
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x2c]
call fcn.00401c40
mov esi, dword [ebp - 0x18]
push esi
call ebx
cmp eax, 0xffffffff
jne 0x406f98
lea ecx, [ebp - 0x38]
call fcn.00401c60
push esi
push str.gb0R
lea ecx, [ebp - 0x38]
push ecx
call fcn.00403650
add esp, 0xc
push 0
push 0x423f38
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x38]
call fcn.00401c40
lea ecx, [ebp - 0x18]
call fcn.00401c40
lea ecx, [ebp - 0x14]
call fcn.00401c40
lea ecx, [ebp - 0x34]
call fcn.00401c40
lea ecx, [ebp - 0x30]
call fcn.00401c40
lea ecx, [ebp - 0x20]
call fcn.00401c40
xor eax, eax
jmp 0x4081cc
mov ecx, 0x42bbe0
mov edx, dword [0x42bbe0]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
push eax
push 0x423edc
lea ecx, [ebp - 0x34]
push ecx
call fcn.00403650
add esp, 0xc
push 0
push 0x423f38
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x34]
call fcn.00401c40
lea ecx, [ebp - 0x38]
call fcn.00401c40
lea ecx, [ebp - 0x20]
call fcn.00401c40
xor eax, eax
jmp 0x4081cc
push 0x423784
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x2c]
call fcn.00401c40
cmp dword [0x42bacc], 1
jne 0x407497
push 0x42bb0c
lea ecx, [ebp - 0x20]
push ecx
call fcn.00401cf0
add esp, 8
test al, al
je 0x407497
mov edx, dword [0x42bb0c]
push edx
call ebx
cmp eax, 0xffffffff
je 0x407497
mov eax, dword [ebp - 0x14]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x407497
push 0x21
push str.pencO
push 0x423e78
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x407497
push 0x423784
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x2c]
call fcn.00401c40
push 0x423784
push 0x42bb0c
lea edx, [ebp - 0x2c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x2c]
call fcn.00401c40
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
call ebx
push 0x423770
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x2c]
call fcn.00401c40
push 0x423770
push 0x42bb0c
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x2c]
call fcn.00401c40
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call ebx
push str.backup_
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x2c]
call fcn.00401c40
mov esi, dword [ebp - 0x14]
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call edi
cmp eax, 0xffffffff
jne 0x40711f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.backup.
push 0x42bb0c
lea eax, [ebp - 0x2c]
push eax
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x2c]
call fcn.00401c40
lea ecx, [ebp]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40728f
mov ecx, 0x423564
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40718d
test dx, dx
je 0x407189
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40718d
add eax, 4
add ecx, 4
test dx, dx
jne 0x407167
xor eax, eax
jmp 0x407192
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407274
mov ecx, 0x42355c
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4071c8
test dx, dx
je 0x4071c4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4071c8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4071a2
xor eax, eax
jmp 0x4071cd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407274
lea eax, [ebp + 0x2c]
push eax
push str.backup_
push 0x42bb0c
lea ecx, [ebp - 0x44]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x2c]
call fcn.00401c40
lea ecx, [ebp - 0x44]
call fcn.00401c40
push 0x423e44
lea ecx, [ebp - 0x38]
call fcn.00403d50
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x24]
call fcn.00401c40
lea ecx, [ebp - 0x1c]
call fcn.00401c40
lea ecx, [ebp - 0x38]
call fcn.00401c40
push 1
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call ebx
lea ecx, [ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x40715f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.res_
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
mov esi, dword [ebp - 0x14]
push esi
call edi
cmp eax, 0xffffffff
jne 0x4072c9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.res.
push 0x42bb0c
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
lea edx, [ebp]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40743c
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
mov ecx, 0x423564
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40733e
test dx, dx
je 0x40733a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40733e
add eax, 4
add ecx, 4
test dx, dx
jne 0x407318
xor eax, eax
jmp 0x407343
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407425
mov ecx, 0x42355c
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407379
test dx, dx
je 0x407375
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407379
add eax, 4
add ecx, 4
test dx, dx
jne 0x407353
xor eax, eax
jmp 0x40737e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407425
lea ecx, [ebp + 0x2c]
push ecx
push str.res_
push 0x42bb0c
lea edx, [ebp - 0x24]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
lea ecx, [ebp - 0x24]
call fcn.00401c40
push 0x423e20
lea ecx, [ebp - 0x38]
call fcn.00403d50
lea ecx, [ebp + 0x2c]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004033d0
add esp, 0xc
push eax
lea edx, [ebp - 0x44]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x44]
call fcn.00401c40
lea ecx, [ebp - 0x2c]
call fcn.00401c40
lea ecx, [ebp - 0x38]
call fcn.00401c40
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
lea edx, [ebp]
push edx
push esi
call edi
cmp eax, 1
je 0x407310
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x423e04
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
push 0x423e04
push 0x42bb0c
lea edx, [ebp - 0x1c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
jmp 0x40749d
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], 0
push 0x423784
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
mov ecx, dword [ebp - 0x14]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call edi
cmp eax, 0xffffffff
je 0x4074ef
push ecx
mov ecx, esp
lea edx, [ebp - 0x20]
push edx
call fcn.00402220
mov ecx, dword [ebp - 0x40]
call fcn.00404490
push 0x423800
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
push 0x423de0
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004033d0
add esp, 0xc
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
lea ecx, [ebp - 0x24]
call fcn.00401c40
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
test eax, eax
jne 0x407579
mov dword [ebp - 0x48], 0x423dac
push 0x42796c
lea edx, [ebp - 0x48]
push edx
call fcn.00412882
push 0x423d88
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
push 0x423d60
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004033d0
add esp, 0xc
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
lea ecx, [ebp - 0x24]
call fcn.00401c40
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
test eax, eax
jne 0x407603
mov dword [ebp - 0x54], 0x423d28
push 0x42796c
lea edx, [ebp - 0x54]
push edx
call fcn.00412882
push 0x423d14
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
push 0x423d00
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004033d0
add esp, 0xc
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
lea ecx, [ebp - 0x24]
call fcn.00401c40
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
push 0x423ce4
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
push 0x423cc4
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
lea ecx, [ebp - 0x24]
call fcn.00401c40
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call ebx
push 0x423ca8
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
push 0x423c88
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004033d0
add esp, 0xc
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
lea ecx, [ebp - 0x24]
call fcn.00401c40
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call ebx
push 0x423e04
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
push str._template.xml
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004033d0
add esp, 0xc
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
lea ecx, [ebp - 0x24]
call fcn.00401c40
mov esi, dword [ebp - 0x14]
push esi
call edi
cmp eax, 0xffffffff
je 0x40789d
push ecx
mov ecx, esp
lea eax, [ebp - 0x14]
push eax
call fcn.00402220
push ecx
mov ecx, esp
lea edx, [ebp - 0x18]
push edx
call fcn.00402220
mov ecx, dword [ebp - 0x40]
call fcn.00405c10
push 0x423784
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
push 0x423c58
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
lea ecx, [ebp - 0x24]
call fcn.00401c40
push str.config.xml
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00403450
add esp, 0xc
mov esi, dword [ebp - 0x14]
push esi
call edi
cmp eax, 0xffffffff
jne 0x4078e2
mov edi, dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push esi
cmp eax, 0xffffffff
je 0x4078c3
push edi
call ebx
test eax, eax
jne 0x4078e2
mov dword [ebp - 0x60], 0x423c2c
push 0x42796c
lea ecx, [ebp - 0x60]
push ecx
call fcn.00412882
push 0
push esi
mov eax, dword [ebp - 0x18]
push eax
call ebx
test eax, eax
jne 0x4077ea
mov dword [ebp - 0x58], 0x423c00
push 0x42796c
lea ecx, [ebp - 0x58]
push ecx
call fcn.00412882
mov edx, dword [ebp - 0x18]
push edx
call ebx
test eax, eax
jne 0x4078e2
mov dword [ebp - 0x5c], 0x423bdc
push 0x42796c
lea eax, [ebp - 0x5c]
push eax
call fcn.00412882
push str.res_
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407939
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407939
mov dword [ebp - 0x50], 0x423bcc
push 0x42796c
lea eax, [ebp - 0x50]
push eax
call fcn.00412882
push str._res.
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
lea ecx, [ebp - 0x24]
call fcn.00401c40
lea edx, [ebp]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x407ae5
mov ecx, 0x423564
lea eax, [ebp + 0x2c]
jmp 0x4079a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4079c6
test dx, dx
je 0x4079c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4079c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4079a0
xor eax, eax
jmp 0x4079cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407aca
mov ecx, 0x42355c
lea eax, [ebp + 0x2c]
jmp 0x4079e0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407a06
test dx, dx
je 0x407a02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407a06
add eax, 4
add ecx, 4
test dx, dx
jne 0x4079e0
xor eax, eax
jmp 0x407a0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407aca
lea ecx, [ebp + 0x2c]
push ecx
push str._res_
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.004033d0
add esp, 0xc
push eax
lea edx, [ebp - 0x24]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
lea ecx, [ebp - 0x24]
call fcn.00401c40
lea ecx, [ebp - 0x44]
call fcn.00401c40
push 0x423e20
lea ecx, [ebp - 0x38]
call fcn.00403d50
lea ecx, [ebp + 0x2c]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004033d0
add esp, 0xc
push eax
lea edx, [ebp - 0x3c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x3c]
call fcn.00401c40
lea ecx, [ebp - 0x28]
call fcn.00401c40
lea ecx, [ebp - 0x38]
call fcn.00401c40
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
lea edx, [ebp]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x407993
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.sound_
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x28]
call fcn.00401c40
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407b3c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407b3c
mov dword [ebp - 0x4c], 0x423bcc
push 0x42796c
lea edx, [ebp - 0x4c]
push edx
call fcn.00412882
push str._sound.
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.004033d0
add esp, 0xc
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x28]
call fcn.00401c40
lea ecx, [ebp - 0x3c]
call fcn.00401c40
lea ecx, [ebp]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x407cd8
mov ecx, 0x423564
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407bbe
test dx, dx
je 0x407bba
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407bbe
add eax, 4
add ecx, 4
test dx, dx
jne 0x407b98
xor eax, eax
jmp 0x407bc3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407cbd
mov ecx, 0x42355c
lea eax, [ebp + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407bf9
test dx, dx
je 0x407bf5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407bf9
add eax, 4
add ecx, 4
test dx, dx
jne 0x407bd3
xor eax, eax
jmp 0x407bfe
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407cbd
lea eax, [ebp + 0x2c]
push eax
push str._sound_
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x28]
call fcn.00401c40
lea ecx, [ebp - 0x3c]
call fcn.00401c40
lea ecx, [ebp - 0x1c]
call fcn.00401c40
push 0x423b6c
lea ecx, [ebp - 0x38]
call fcn.00403d50
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x24]
call fcn.00401c40
lea ecx, [ebp - 0x44]
call fcn.00401c40
lea ecx, [ebp - 0x38]
call fcn.00401c40
push 1
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call ebx
lea ecx, [ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x407b90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x40]
cmp dword [edi + 0x148], 1
jne 0x407d71
lea esi, [edi + 0x128]
push esi
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x28]
call fcn.00401c40
push esi
push 0x423558
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x28]
call fcn.00401c40
lea ecx, [ebp - 0x3c]
call fcn.00401c40
lea ecx, [ebp - 0x1c]
call fcn.00401c40
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
cmp dword [edi + 0x14c], 1
jne 0x407e07
lea esi, [edi + 0x12c]
push esi
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x28]
call fcn.00401c40
push esi
push 0x423558
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x28]
call fcn.00401c40
lea ecx, [ebp - 0x3c]
call fcn.00401c40
lea ecx, [ebp - 0x1c]
call fcn.00401c40
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
cmp dword [edi + 0x150], 1
jne 0x407e7f
lea esi, [edi + 0x130]
push esi
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x28]
call fcn.00401c40
push esi
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x28]
call fcn.00401c40
lea ecx, [ebp - 0x3c]
call fcn.00401c40
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call ebx
push 0
push 0
lea ecx, [ebp + 0x250]
push ecx
mov ebx, edi
mov edx, dword [ebx + 4]
push edx
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call edi
cmp eax, 1
jne 0x407f1d
lea eax, [ebp + 0x250]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403db0
push 0x423b54
lea ecx, [ebp - 0x14]
call fcn.00403df0
push 0x423800
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x28]
call fcn.00401c40
push 1
push ecx
mov ecx, esp
lea eax, [ebp - 0x14]
push eax
call fcn.00402220
push ecx
mov ecx, esp
lea edx, [ebp - 0x18]
push edx
call fcn.00402220
mov ecx, ebx
call fcn.00402410
test eax, eax
jne 0x407f1d
push eax
push 0x423f38
push 0x423b40
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push 7
push 0x401
mov ecx, dword [ebx + 4]
push ecx
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
call esi
push 0
push 2
lea edx, [ebp + 0x250]
push edx
mov eax, dword [ebx + 4]
push eax
call edi
cmp eax, 1
jne 0x4080bc
lea ecx, [ebp + 0x250]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00403db0
push 0x423b30
lea ecx, [ebp - 0x14]
call fcn.00403df0
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407f80
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x423800
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x28]
call fcn.00401c40
push 1
push ecx
mov ecx, esp
push 0x423b54
lea edx, [ebp - 0x14]
push edx
push ecx
call fcn.00403450
add esp, 8
mov ecx, esp
lea eax, [ebp - 0x18]
push eax
call fcn.00402220
mov ecx, ebx
call fcn.00402410
push 0x423d88
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x3c]
call fcn.00401c40
push 1
push ecx
mov eax, esp
push 0x423b18
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00403450
add esp, 8
mov ecx, esp
lea edx, [ebp - 0x18]
push edx
call fcn.00402220
mov ecx, ebx
call fcn.00402410
push 0x423d00
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x1c]
call fcn.00401c40
push 0
push ecx
mov edx, esp
push 0x423afc
lea eax, [ebp - 0x14]
push eax
push edx
call fcn.00403450
add esp, 8
mov ecx, esp
lea edx, [ebp - 0x18]
push edx
call fcn.00402220
mov ecx, ebx
call fcn.00402410
push 0x423cc4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x24]
call fcn.00401c40
push 1
push ecx
mov edx, esp
push 0x423ae0
lea eax, [ebp - 0x14]
push eax
push edx
call fcn.00403450
add esp, 8
mov ecx, esp
lea edx, [ebp - 0x18]
push edx
call fcn.00402220
mov ecx, ebx
call fcn.00402410
push 0
push 3
push 0x401
mov eax, dword [ebx + 4]
push eax
call esi
push 0x423800
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00403450
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.00403590
lea ecx, [ebp - 0x28]
call fcn.00401c40
push ecx
mov ecx, esp
lea eax, [ebp - 0x14]
push eax
call fcn.00402220
mov ecx, ebx
call fcn.00403990
push 0
push 9
push 0x401
mov ecx, dword [ebx + 4]
push ecx
call esi
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004033d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00403590
lea ecx, [ebp - 0x3c]
call fcn.00401c40
push ecx
mov ecx, esp
lea edx, [ebp - 0x18]
push edx
call fcn.00402220
mov ecx, ebx
call fcn.00403770
cmp dword [ebx + 0x144], 1
jne 0x408179
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.00402220
mov ecx, ebx
call fcn.00402600
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.00403590
lea ecx, [ebp - 0x2c]
call fcn.00401c40
lea ecx, [ebp - 0x18]
call fcn.00401c40
lea ecx, [ebp - 0x14]
call fcn.00401c40
lea ecx, [ebp - 0x34]
call fcn.00401c40
lea ecx, [ebp - 0x30]
call fcn.00401c40
lea ecx, [ebp - 0x20]
call fcn.00401c40
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.00412b82
add ebp, 0x45c
mov esp, ebp
pop ebp
ret
push 0
push 0x423f38
push 0x423f10
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 0x408254
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4081cc
push 0x80070057
call fcn.00401000
int3