Function at 0x4090d0
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 0x409183
cmp word [eax], si
je 0x409183
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 0x409183
mov cx, word [eax]
cmp cx, si
je 0x409183
cmp cx, 0x5c
je 0x40916e
lea ecx, [esp + 0x114]
push eax
push ecx
jmp 0x40917a
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 0x4091d0
mov eax, edi
dec eax
je 0x4091bf
sub eax, 7
je 0x4091a9
mov eax, 0xa
mov dword [0x464cf8], eax
mov dword [0x464cfc], eax
jmp 0x4091e5
mov dword [0x464cfc], 0xc
mov dword [0x464cf8], 0xd
jmp 0x4091e5
mov eax, 0xb
mov dword [0x464cf8], eax
mov dword [0x464cfc], eax
jmp 0x4091e5
neg edi
mov dword [esp + 0x734], edi
mov dword [0x464cf8], esi
mov dword [0x464cfc], 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 0x4093bc
lea eax, [edi - 1]
cmp eax, 8
ja case.0x40921b.7
jmp dword [eax*4 + 0x409618]
push ebx
push esi
push ebp
call fcn.00409640
add esp, 0xc
mov edi, eax
jmp 0x40944e
push ebx
push esi
push ebp
call fcn.00409a40
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4092a4
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 0x46ccb4
push eax
push ebx
call fcn.00418010
add esp, 0x50
jmp 0x40944e
push 0x2e
push esi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je case.0x40921b.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 0x454258
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [esp + 0x330]
push ebx
push eax
push ebp
call fcn.00409a40
mov edi, eax
add esp, 0x20
test edi, edi
je case.0x40921b.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 [0x694ccc]
lea ecx, [esp + 0x1c]
push eax
push 0x69b5b0
push ecx
push 0
push 0xffffffffffffffff
push 0
push 0x2ee
call fcn.00426440
add esp, 0x24
jmp 0x40944e
push ebx
push esi
push ebp
call fcn.0040c510
add esp, 0xc
mov edi, eax
jmp 0x40944e
push ebx
push esi
push ebp
call fcn.0040d340
add esp, 0xc
mov edi, eax
jmp 0x40944e
push ebx
push esi
push ebp
call fcn.00414040
add esp, 0xc
mov edi, eax
jmp 0x40944e
push ebx
push esi
push ebp
call fcn.00416c00
add esp, 0xc
mov edi, eax
jmp 0x40944e
push ebx
push esi
push ebp
call fcn.00416dc0
add esp, 0xc
mov edi, eax
jmp 0x40944e
push ebx
push esi
push ebp
call fcn.0040ee40
add esp, 0xc
mov edi, eax
jmp 0x40944e
cmp edi, 2
jne case.0x40921b.7
push 0x2e
push esi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je case.0x40921b.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 0x454258
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [esp + 0x330]
push ebx
push ecx
push ebp
call fcn.00409a40
mov edi, eax
add esp, 0x20
test edi, edi
je case.0x40921b.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 [0x694ccc]
lea edx, [esp + 0x1c]
push ecx
push 0x69b5b0
push edx
jmp 0x409338
or edi, 0xffffffff
mov eax, dword [esp + 0x740]
cmp eax, 1
je 0x40945e
test eax, eax
jne 0x4094b5
cmp word [esp + 0x114], 0
je 0x4094b5
cmp edi, 1
jge 0x4094b5
cmp dword [esp + 0x10], 1
jge 0x4094b5
lea eax, [esp + 0x114]
push 1
push eax
push esi
call fcn.00406810
add esp, 0xc
test eax, eax
je 0x4094e5
mov ecx, dword [0x694ccc]
push ecx
push 0x69b5b0
push esi
push 0
push 0xffffffffffffffff
push 0
push 0x2ee
call fcn.00426440
mov eax, dword [esp + 0x75c]
add esp, 0x1c
jmp 0x4094b9
inc dword [esp + 0x10]
mov edx, dword [esp + 0x10]
inc edx
cmp word [esp + 0x114], 0
mov dword [esp + 0x10], edx
je 0x409530
mov ecx, edx
cmp ecx, 2
jge 0x409530
cmp edi, 1
jge 0x409530
mov edi, dword [esp + 0x734]
jmp 0x4091fa
push 0
push esi
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
jne 0x409503
push 0
push 0
push esi
call fcn.00408da0
add esp, 0xc
mov edx, dword [0x694ccc]
push edx
push 0x69b5b0
push esi
push 0
push 0xffffffffffffffff
push 0
push 0x2f0
call fcn.00426440
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x71c
ret
cmp edi, 0xffffffff
jne 0x409554
push 0
push 0
push esi
call fcn.00408da0
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 0x409583
mov eax, dword [0x694ccc]
mov ecx, dword [0x464cf8]
push eax
push 0x69b5b0
push 0
push 0
push 0xffffffffffffffff
push 7
push ecx
call fcn.00426440
mov eax, dword [esp + 0x75c]
add esp, 0x1c
test edi, edi
jne 0x4095c3
cmp dword [esp + 0x734], 8
jne 0x409603
mov edx, dword [0x694ccc]
mov eax, dword [0x464cfc]
push edx
push 0x69b5b0
push 0
push 0
push 0xffffffffffffffff
push 7
push eax
call fcn.00426440
add esp, 0x1c
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
setg al
add esp, 0x71c
ret
jle 0x409603
cmp eax, 1
je 0x4095cf
cmp eax, 2
jne 0x409603
cmp word [esp + 0x114], 0
je 0x409603
lea ecx, [esp + 0x114]
push 0
push ecx
push esi
call fcn.00406810
add esp, 0xc
test eax, eax
jne 0x4095f8
push 0xea60
jmp 0x4095fa
push 0
push esi
call fcn.00426840
add esp, 8
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
setg al
add esp, 0x71c
ret