Function at 0x4093e0
Capabilities:
Copy file
Set file attributes

Disassembly:
sub esp, 0x71c
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x116]
mov word [esp + 0x114], si
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x31c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x31e]
mov dword [esp + 0x10], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x744]
cmp eax, esi
je 0x409493
cmp word [eax], si
je 0x409493
push eax
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [esp + 0x750]
add esp, 8
cmp eax, esi
je 0x409493
mov cx, word [eax]
cmp cx, si
je 0x409493
cmp cx, 0x5c
je 0x40947e
lea ecx, [esp + 0x114]
push eax
push ecx
jmp 0x40948a
add eax, 2
lea edx, [esp + 0x114]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov edi, dword [esp + 0x734]
cmp edi, esi
jle 0x4094e0
mov eax, edi
dec eax
je 0x4094cf
sub eax, 7
je 0x4094b9
mov eax, 0xa
mov dword [0x4defa4], eax
mov dword [0x4defa8], eax
jmp 0x4094f5
mov dword [0x4defa8], 0xc
mov dword [0x4defa4], 0xd
jmp 0x4094f5
mov eax, 0xb
mov dword [0x4defa4], eax
mov dword [0x4defa8], eax
jmp 0x4094f5
neg edi
mov dword [esp + 0x734], edi
mov dword [0x4defa4], esi
mov dword [0x4defa8], esi
mov ebx, dword [esp + 0x73c]
mov esi, dword [esp + 0x738]
mov ebp, dword [esp + 0x730]
push 4
push esi
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
je 0x4096cc
lea eax, [edi - 1]
cmp eax, 8
ja case.0x40952b.7
jmp dword [eax*4 + 0x409928]
push ebx
push esi
push ebp
call fcn.00409950
add esp, 0xc
mov edi, eax
jmp 0x40975e
push ebx
push esi
push ebp
call fcn.00409d50
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4095b4
lea eax, [esp + 0x524]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [esp + 0x748]
push 0
push 0
push 0
push 0
xor ecx, ecx
push 0
push 0
test eax, eax
push 0
push 0
setl cl
push 0
dec ecx
lea edx, [esp + 0x140]
push 0
push 0
and ecx, edx
push 0
push ecx
push 0
push 0
lea eax, [esp + 0x568]
push 0x4d9380
push eax
push ebx
call fcn.00418340
add esp, 0x50
jmp 0x40975e
push 0x2e
push esi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je case.0x40952b.7
sub eax, esi
lea ecx, [esp + 0x31c]
sar eax, 1
push eax
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
lea edx, [esp + 0x328]
push 0x42ebc8
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [esp + 0x330]
push ebx
push eax
push ebp
call fcn.00409d50
mov edi, eax
add esp, 0x20
test edi, edi
je case.0x40952b.7
push 0
lea ecx, [esp + 0x320]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x14]
push str.Restored_configuration.ini_from_.bk__Error:_file_not_readable
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [0x435d90]
lea ecx, [esp + 0x1c]
push eax
push 0x455340
push ecx
push 0
push 0xffffffffffffffff
push 0
push 0x2ee
call fcn.0041e0b0
add esp, 0x24
jmp 0x40975e
push ebx
push esi
push ebp
call fcn.0040c820
add esp, 0xc
mov edi, eax
jmp 0x40975e
push ebx
push esi
push ebp
call fcn.0040d670
add esp, 0xc
mov edi, eax
jmp 0x40975e
push ebx
push esi
push ebp
call fcn.00414370
add esp, 0xc
mov edi, eax
jmp 0x40975e
push ebx
push esi
push ebp
call fcn.00416f30
add esp, 0xc
mov edi, eax
jmp 0x40975e
push ebx
push esi
push ebp
call fcn.004170f0
add esp, 0xc
mov edi, eax
jmp 0x40975e
push ebx
push esi
push ebp
call fcn.0040f170
add esp, 0xc
mov edi, eax
jmp 0x40975e
cmp edi, 2
jne case.0x40952b.7
push 0x2e
push esi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je case.0x40952b.7
sub eax, esi
lea edx, [esp + 0x31c]
sar eax, 1
push eax
push esi
push edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
lea eax, [esp + 0x328]
push 0x42ebc8
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [esp + 0x330]
push ebx
push ecx
push ebp
call fcn.00409d50
mov edi, eax
add esp, 0x20
test edi, edi
je case.0x40952b.7
push 0
lea edx, [esp + 0x320]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 0x14]
push str.Restored_configuration.ini_.bk__Error:_file_not_found
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
mov ecx, dword [0x435d90]
lea edx, [esp + 0x1c]
push ecx
push 0x455340
push edx
jmp 0x409648
or edi, 0xffffffff
mov eax, dword [esp + 0x740]
cmp eax, 1
je 0x40976e
test eax, eax
jne 0x4097c5
cmp word [esp + 0x114], 0
je 0x4097c5
cmp edi, 1
jge 0x4097c5
cmp dword [esp + 0x10], 1
jge 0x4097c5
lea eax, [esp + 0x114]
push 1
push eax
push esi
call fcn.00406ae0
add esp, 0xc
test eax, eax
je 0x4097f5
mov ecx, dword [0x435d90]
push ecx
push 0x455340
push esi
push 0
push 0xffffffffffffffff
push 0
push 0x2ee
call fcn.0041e0b0
mov eax, dword [esp + 0x75c]
add esp, 0x1c
jmp 0x4097c9
inc dword [esp + 0x10]
mov edx, dword [esp + 0x10]
inc edx
cmp word [esp + 0x114], 0
mov dword [esp + 0x10], edx
je 0x409840
mov ecx, edx
cmp ecx, 2
jge 0x409840
cmp edi, 1
jge 0x409840
mov edi, dword [esp + 0x734]
jmp 0x40950a
push 0
push esi
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
jne 0x409813
push 0
push 0
push esi
call fcn.004090b0
add esp, 0xc
mov edx, dword [0x435d90]
push edx
push 0x455340
push esi
push 0
push 0xffffffffffffffff
push 0
push 0x2f0
call fcn.0041e0b0
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x71c
ret
cmp edi, 0xffffffff
jne 0x409864
push 0
push 0
push esi
call fcn.004090b0
add esp, 0xc
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
setg al
add esp, 0x71c
ret
test edi, edi
jle 0x409893
mov eax, dword [0x435d90]
mov ecx, dword [0x4defa4]
push eax
push 0x455340
push 0
push 0
push 0xffffffffffffffff
push 7
push ecx
call fcn.0041e0b0
mov eax, dword [esp + 0x75c]
add esp, 0x1c
test edi, edi
jne 0x4098d3
cmp dword [esp + 0x734], 8
jne 0x409913
mov edx, dword [0x435d90]
mov eax, dword [0x4defa8]
push edx
push 0x455340
push 0
push 0
push 0xffffffffffffffff
push 7
push eax
call fcn.0041e0b0
add esp, 0x1c
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
setg al
add esp, 0x71c
ret
jle 0x409913
cmp eax, 1
je 0x4098df
cmp eax, 2
jne 0x409913
cmp word [esp + 0x114], 0
je 0x409913
lea ecx, [esp + 0x114]
push 0
push ecx
push esi
call fcn.00406ae0
add esp, 0xc
test eax, eax
jne 0x409908
push 0xea60
jmp 0x40990a
push 0
push esi
call fcn.00428880
add esp, 8
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
setg al
add esp, 0x71c
ret