Function at 0x4a03bd
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e0108
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0xc4]
cmp byte [eax + 0x59], 0
mov dword [esp + 0x20], ebx
je 0x4a0435
mov al, 1
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004b196e
mov esp, ebp
pop ebp
ret
push 0x501fd0
lea ecx, [esp + 0x80]
call fcn.00404357
xor esi, esi
mov dword [esp + 0xa8], esi
push esi
lea ecx, [esp + 0x80]
lea edi, [esp + 0x64]
call fcn.0045ad90
pop ecx
mov byte [esp + 0xa8], 2
push esi
push 1
lea ecx, [esp + 0x84]
call fcn.004035da
mov eax, dword [ebx + 0xc4]
add eax, 4
push eax
call fcn.004a303f
test al, al
je 0x4a0895
mov eax, dword [ebx + 0xc4]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x4a04a3
mov eax, dword [eax + 4]
jmp 0x4a04a6
add eax, 4
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004054af
mov byte [esp + 0xa8], 3
lea edi, [esp + 0x28]
lea ecx, [esp + 0x60]
call fcn.0045ba70
mov byte [esp + 0xa8], 4
cmp dword [eax + 0x18], 8
jb 0x4a04d9
mov eax, dword [eax + 4]
jmp 0x4a04dc
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004054af
mov byte [esp + 0xa8], 6
lea eax, [esp + 0x28]
push eax
call fcn.0042220e
lea eax, [esp + 0x18]
call fcn.0045eef0
push 0x88
call fcn.004b32ab
mov esi, eax
pop ecx
mov dword [esp + 0x24], esi
mov byte [esp + 0xa8], 7
xor edi, edi
cmp esi, edi
je 0x4a0532
push edi
lea eax, [esp + 0x1c]
push eax
xor eax, eax
call fcn.0047e76c
mov esi, eax
jmp 0x4a0534
xor esi, esi
mov byte [esp + 0xa8], 6
mov dword [esp + 0x24], esi
mov byte [esp + 0xa8], 8
lea edx, [esp + 0x28]
lea ecx, [esp + 0x60]
call fcn.0045b8d0
mov byte [esp + 0xa8], 9
cmp dword [eax + 0x18], 8
jb 0x4a0568
mov eax, dword [eax + 4]
jmp 0x4a056b
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004054af
mov byte [esp + 0xa8], 0xb
push edi
push 1
lea ecx, [esp + 0x30]
call fcn.004035da
mov eax, dword [esi]
push 1
push edi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x24]
test eax, eax
je 0x4a05fd
mov byte [esp + 0xa8], 8
lea ecx, [esp + 0x1c]
call fcn.00402964
mov byte [esp + 0xa8], 6
push esi
call fcn.004b1963
pop ecx
mov byte [esp + 0xa8], 3
lea ecx, [esp + 0x18]
call fcn.00402964
mov byte [esp + 0xa8], 2
lea ecx, [esp + 0x14]
call fcn.00402964
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.0040367e
xor al, al
jmp 0x4a0411
mov byte [esp + 0xa8], 8
lea ecx, [esp + 0x1c]
call fcn.00402964
mov byte [esp + 0xa8], 6
push esi
call fcn.004b1963
pop ecx
mov byte [esp + 0xa8], 3
lea ecx, [esp + 0x18]
call fcn.00402964
mov byte [esp + 0xa8], 2
lea ecx, [esp + 0x14]
call fcn.00402964
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x4a064e
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004054af
mov byte [esp + 0xa8], 0xc
mov eax, dword [ebx + 0xc4]
add eax, 0xfc
push eax
lea ebx, [esp + 0x18]
call fcn.00468310
mov byte [esp + 0xa8], 2
mov ecx, ebx
call fcn.00402964
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x4a0694
lea eax, [esp + 0x64]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0xc4]
push 0xffffffffffffffff
xor edi, edi
lea edx, [eax + 4]
push edi
lea ecx, [eax + 0x20]
push edx
call fcn.00403ffa
push dword [ebx + 0xc4]
call fcn.0049f62e
test al, al
je 0x4a070d
push str.OriginalDatabase
lea ecx, [esp + 0x80]
call fcn.00404357
mov byte [esp + 0xa8], 0xd
mov edx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
lea ecx, [edx + 4]
push eax
call fcn.0049f466
mov byte [esp + 0xa8], 2
push edi
push 1
lea ecx, [esp + 0x84]
call fcn.004035da
mov ecx, dword [ebx + 0xc4]
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x68]
add ecx, 4
push eax
call fcn.00403ffa
mov eax, dword [ebx + 0xc4]
mov esi, str.SourceDir
push esi
lea ecx, [esp + 0x80]
mov byte [eax + 0x59], 1
call fcn.00404357
mov byte [esp + 0xa8], 0xe
mov ecx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0049f5b6
mov byte [esp + 0xa8], 0xf
cmp dword [eax + 0x14], edi
sete byte [esp + 0x13]
mov byte [esp + 0xa8], 0xe
push edi
push 1
lea ecx, [esp + 0x30]
call fcn.004035da
mov byte [esp + 0xa8], 2
push edi
push 1
lea ecx, [esp + 0x84]
call fcn.004035da
cmp byte [esp + 0x13], 0
je 0x4a0891
mov ecx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
add ecx, 0x20
push eax
call fcn.0045a5d0
mov byte [esp + 0xa8], 0x10
lea edi, [esp + 0x44]
lea ecx, [esp + 0x7c]
call fcn.0045ba70
mov byte [esp + 0xa8], 0x11
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.0045a560
mov byte [esp + 0xa8], 0x12
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x88]
call fcn.00403ffa
mov byte [esp + 0xa8], 0x11
lea eax, [esp + 0x28]
push eax
call fcn.0040367e
mov byte [esp + 0xa8], 0x10
mov eax, edi
push eax
call fcn.0042220e
push esi
lea ecx, [esp + 0x2c]
call fcn.00404357
mov byte [esp + 0xa8], 0x13
lea eax, [esp + 0x7c]
push eax
lea esi, [esp + 0x48]
call fcn.0045a8b0
mov byte [esp + 0xa8], 0x14
mov edx, dword [ebx + 0xc4]
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.0049f466
mov byte [esp + 0xa8], 0x13
push 0
push 1
mov ecx, esi
call fcn.004035da
mov byte [esp + 0xa8], 0x10
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004035da
mov byte [esp + 0xa8], 2
lea eax, [esp + 0x7c]
push eax
call fcn.0040367e
mov bl, 1
jmp 0x4a08ce
cmp dword [esp + 0x78], 8
mov ecx, dword [esp + 0x64]
jae 0x4a08a4
lea ecx, [esp + 0x64]
mov eax, dword [ebx + 0xc4]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x4a08b8
mov eax, dword [eax + 4]
jmp 0x4a08bb
add eax, 4
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4a063f
xor bl, bl
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.0040367e
mov al, bl
jmp 0x4a0411