Function at 0x403560
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437d20
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x4493b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x338], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x403850
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4035b0
sub eax, edx
je 0x403850
test ebx, ebx
je 0x403850
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4035d0
sub eax, edx
je 0x403850
push ebx
push esi
call fcn.00422d16
add esp, 8
test eax, eax
je 0x40388f
push 0x104
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.00423cc0
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x120]
push ecx
call fcn.00423cc0
add esp, 0xc
push 0x43e9c4
lea ecx, [ebp - 0x228]
call fcn.00406420
add esp, 4
mov ecx, 0x43e9c4
lea edx, [ebp - 0x228]
call fcn.004065b0
push 0x43e9c4
lea ecx, [ebp - 0x120]
call fcn.00406420
add esp, 4
mov ecx, 0x43e9c4
lea edx, [ebp - 0x120]
call fcn.004065b0
push esi
push 0x104
lea edx, [ebp - 0x228]
push edx
call fcn.00422999
add esp, 0xc
push ebx
push 0x104
lea eax, [ebp - 0x120]
push eax
call fcn.00422999
add esp, 0xc
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x403835
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x334], edi
cmp edi, dword [ebp + 0x18]
jne 0x4036d9
mov dword [ebp - 0x340], edi
push 0x444850
lea ecx, [ebp - 0x340]
push ecx
call fcn.004244c5
lea eax, [edi - 3]
cmp eax, 0x4d
ja case.0x4036ec.4
movzx edx, byte [eax + 0x4038c4]
jmp dword [edx*4 + 0x4038b0]
lea eax, [ebp - 0x378]
push eax
lea ecx, [ebp - 0x228]
call fcn.00404350
test eax, eax
je 0x403725
mov ecx, dword [ebp - 0x338]
push ecx
lea esi, [ebp - 0x378]
lea ecx, [ebp - 0x120]
call fcn.004041d0
test eax, eax
jne 0x403738
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.00404220
cmp eax, 2
jne 0x403757
push 0x80
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
push 0
jmp 0x40380c
xor edi, edi
mov dword [ebp - 0x334], edi
jmp 0x403835
push 0x80
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
push 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x228]
push edx
jmp 0x40381e
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x228]
call fcn.00403ca0
jmp 0x403829
push 0x104
push 0
lea eax, [ebp - 0x330]
push eax
call fcn.00423cc0
add esp, 0xc
push 0x5c
lea ecx, [ebp - 0x120]
push ecx
call fcn.00422460
add esp, 8
test eax, eax
je case.0x4036ec.4
lea edx, [ebp - 0x120]
sub eax, edx
push eax
mov eax, edx
push eax
push 0x104
lea ecx, [ebp - 0x330]
push ecx
call fcn.00422aea
add esp, 0x10
lea edx, [ebp - 0x330]
call fcn.00404000
mov edi, eax
mov dword [ebp - 0x334], edi
test edi, edi
jne 0x403847
push 3
push 1
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x228]
push ecx
mov ecx, dword [ebp - 0x338]
call fcn.00403560
mov edi, eax
mov dword [ebp - 0x334], edi
test edi, edi
jne 0x403847
push 0x80
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], 0xffffffff
jmp 0x40388d
mov eax, 0x57
jmp 0x40388f
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422383
mov esp, ebp
pop ebp
ret 0x14