Function at 0x4a0280
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e074d
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 0x4a02f8
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.004b1fae
mov esp, ebp
pop ebp
ret
push 0x502060
lea ecx, [esp + 0x80]
call fcn.00404342
xor esi, esi
mov dword [esp + 0xa8], esi
push esi
lea ecx, [esp + 0x80]
lea edi, [esp + 0x64]
call fcn.0045b050
pop ecx
mov byte [esp + 0xa8], 2
push esi
push 1
lea ecx, [esp + 0x84]
call fcn.004035c5
mov eax, dword [ebx + 0xc4]
add eax, 4
push eax
call fcn.004a2d3c
test al, al
je 0x4a0758
mov eax, dword [ebx + 0xc4]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x4a0366
mov eax, dword [eax + 4]
jmp 0x4a0369
add eax, 4
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004054bc
mov byte [esp + 0xa8], 3
lea edi, [esp + 0x28]
lea ecx, [esp + 0x60]
call fcn.0045bd30
mov byte [esp + 0xa8], 4
cmp dword [eax + 0x18], 8
jb 0x4a039c
mov eax, dword [eax + 4]
jmp 0x4a039f
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004054bc
mov byte [esp + 0xa8], 6
lea eax, [esp + 0x28]
push eax
call fcn.004a4e1e
lea eax, [esp + 0x18]
call fcn.0045f230
push 0x88
call fcn.004b38eb
mov esi, eax
pop ecx
mov dword [esp + 0x24], esi
mov byte [esp + 0xa8], 7
xor edi, edi
cmp esi, edi
je 0x4a03f5
push edi
lea eax, [esp + 0x1c]
push eax
xor eax, eax
call fcn.0047ea49
mov esi, eax
jmp 0x4a03f7
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.0045bb90
mov byte [esp + 0xa8], 9
cmp dword [eax + 0x18], 8
jb 0x4a042b
mov eax, dword [eax + 4]
jmp 0x4a042e
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004054bc
mov byte [esp + 0xa8], 0xb
push edi
push 1
lea ecx, [esp + 0x30]
call fcn.004035c5
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 0x4a04c0
mov byte [esp + 0xa8], 8
lea ecx, [esp + 0x1c]
call fcn.004029ae
mov byte [esp + 0xa8], 6
push esi
call fcn.004b1fa3
pop ecx
mov byte [esp + 0xa8], 3
lea ecx, [esp + 0x18]
call fcn.004029ae
mov byte [esp + 0xa8], 2
lea ecx, [esp + 0x14]
call fcn.004029ae
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.00403669
xor al, al
jmp 0x4a02d4
mov byte [esp + 0xa8], 8
lea ecx, [esp + 0x1c]
call fcn.004029ae
mov byte [esp + 0xa8], 6
push esi
call fcn.004b1fa3
pop ecx
mov byte [esp + 0xa8], 3
lea ecx, [esp + 0x18]
call fcn.004029ae
mov byte [esp + 0xa8], 2
lea ecx, [esp + 0x14]
call fcn.004029ae
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x4a0511
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004054bc
mov byte [esp + 0xa8], 0xc
mov eax, dword [ebx + 0xc4]
add eax, 0xfc
push eax
lea ebx, [esp + 0x18]
call fcn.00468650
mov byte [esp + 0xa8], 2
mov ecx, ebx
call fcn.004029ae
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x4a0557
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.00403fe5
push dword [ebx + 0xc4]
call fcn.0049f4ec
test al, al
je 0x4a05d0
push str.OriginalDatabase
lea ecx, [esp + 0x80]
call fcn.00404342
mov byte [esp + 0xa8], 0xd
mov edx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
lea ecx, [edx + 4]
push eax
call fcn.0049f324
mov byte [esp + 0xa8], 2
push edi
push 1
lea ecx, [esp + 0x84]
call fcn.004035c5
mov ecx, dword [ebx + 0xc4]
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x68]
add ecx, 4
push eax
call fcn.00403fe5
mov eax, dword [ebx + 0xc4]
mov esi, str.SourceDir
push esi
lea ecx, [esp + 0x80]
mov byte [eax + 0x59], 1
call fcn.00404342
mov byte [esp + 0xa8], 0xe
mov ecx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0049f474
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.004035c5
mov byte [esp + 0xa8], 2
push edi
push 1
lea ecx, [esp + 0x84]
call fcn.004035c5
cmp byte [esp + 0x13], 0
je 0x4a0754
mov ecx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
add ecx, 0x20
push eax
call fcn.0045a890
mov byte [esp + 0xa8], 0x10
lea edi, [esp + 0x44]
lea ecx, [esp + 0x7c]
call fcn.0045bd30
mov byte [esp + 0xa8], 0x11
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.0045a820
mov byte [esp + 0xa8], 0x12
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x88]
call fcn.00403fe5
mov byte [esp + 0xa8], 0x11
lea eax, [esp + 0x28]
push eax
call fcn.00403669
mov byte [esp + 0xa8], 0x10
mov eax, edi
push eax
call fcn.004a4e1e
push esi
lea ecx, [esp + 0x2c]
call fcn.00404342
mov byte [esp + 0xa8], 0x13
lea eax, [esp + 0x7c]
push eax
lea esi, [esp + 0x48]
call fcn.0045ab70
mov byte [esp + 0xa8], 0x14
mov edx, dword [ebx + 0xc4]
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.0049f324
mov byte [esp + 0xa8], 0x13
push 0
push 1
mov ecx, esi
call fcn.004035c5
mov byte [esp + 0xa8], 0x10
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004035c5
mov byte [esp + 0xa8], 2
lea eax, [esp + 0x7c]
push eax
call fcn.00403669
mov bl, 1
jmp 0x4a0791
cmp dword [esp + 0x78], 8
mov ecx, dword [esp + 0x64]
jae 0x4a0767
lea ecx, [esp + 0x64]
mov eax, dword [ebx + 0xc4]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x4a077b
mov eax, dword [eax + 4]
jmp 0x4a077e
add eax, 4
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4a0502
xor bl, bl
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.00403669
mov al, bl
jmp 0x4a02d4