Function at 0x4ab524
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f9d7a
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x541770]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xc4]
cmp byte [eax + 0x59], 0
mov dword [esp + 0x3c], edi
je 0x4ab59c
mov al, 1
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004c625d
mov esp, ebp
pop ebp
ret
push 0x51b260
lea ecx, [esp + 0xe4]
call fcn.0040521c
xor ebx, ebx
mov dword [esp + 0x128], ebx
lea eax, [esp + 0xfc]
push ebx
push eax
lea ecx, [esp + 0xe8]
call fcn.0045d190
pop ecx
pop ecx
mov byte [esp + 0x128], 2
push ebx
push 1
lea ecx, [esp + 0xe8]
call fcn.00401774
mov eax, dword [edi + 0xc4]
add eax, 4
push eax
call fcn.004ae06b
test al, al
je 0x4ab740
mov eax, dword [edi + 0xc4]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x4ab60f
mov eax, dword [eax + 4]
jmp 0x4ab612
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00405d46
mov byte [esp + 0x128], 3
push ebx
xor eax, eax
lea esi, [esp + 0x60]
call fcn.004860cd
mov byte [esp + 0x128], 4
lea esi, [esp + 0x20]
lea ecx, [esp + 0xfc]
call fcn.0045ddf0
mov byte [esp + 0x128], 5
cmp dword [eax + 0x18], 8
jb 0x4ab65c
mov eax, dword [eax + 4]
jmp 0x4ab65f
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00405d46
mov byte [esp + 0x128], 6
push 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x68]
call fcn.004861f0
test eax, eax
setne bl
mov byte [esp + 0x128], 5
lea ecx, [esp + 0x18]
call fcn.004036cd
mov byte [esp + 0x128], 4
push 0
push 1
lea ecx, [esp + 0x28]
call fcn.00401774
test bl, bl
je 0x4ab6f4
mov byte [esp + 0x128], 3
lea esi, [esp + 0x5c]
call fcn.00486157
mov byte [esp + 0x128], 2
lea ecx, [esp + 0x1c]
call fcn.004036cd
or dword [esp + 0x128], 0xffffffff
lea eax, [esp + 0xfc]
push eax
call fcn.00404867
xor al, al
jmp 0x4ab578
mov byte [esp + 0x128], 3
lea esi, [esp + 0x5c]
call fcn.00486157
mov byte [esp + 0x128], 2
lea ecx, [esp + 0x1c]
call fcn.004036cd
lea esi, [esp + 0x20]
lea ecx, [esp + 0xfc]
call fcn.0045ddf0
mov byte [esp + 0x128], 8
cmp dword [eax + 0x18], 8
jb 0x4ab7c9
mov eax, dword [eax + 4]
jmp 0x4ab7cc
lea esi, [esp + 0x20]
lea ecx, [esp + 0xfc]
call fcn.0045ddf0
mov byte [esp + 0x128], 7
cmp dword [eax + 0x18], 8
jb 0x4ab763
mov ecx, dword [eax + 4]
jmp 0x4ab766
lea ecx, [eax + 4]
mov eax, dword [edi + 0xc4]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x4ab77a
mov eax, dword [eax + 4]
jmp 0x4ab77d
add eax, 4
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [esp + 0x128], 2
push 0
push 1
lea ecx, [esp + 0x28]
call fcn.00401774
test bl, bl
je 0x4ab716
xor bl, bl
or dword [esp + 0x128], 0xffffffff
lea eax, [esp + 0xfc]
push eax
call fcn.00404867
mov al, bl
jmp 0x4ab578
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00405d46
mov byte [esp + 0x128], 9
mov eax, dword [edi + 0xc4]
add eax, 0xfc
push eax
lea ebx, [esp + 0x1c]
call fcn.0047224e
mov byte [esp + 0x128], 8
mov ecx, ebx
call fcn.004036cd
mov byte [esp + 0x128], 2
xor ebx, ebx
push ebx
push 1
lea ecx, [esp + 0x28]
call fcn.00401774
lea esi, [esp + 0x20]
lea ecx, [esp + 0xfc]
call fcn.0045ddf0
mov byte [esp + 0x128], 0xa
cmp dword [eax + 0x18], 8
jb 0x4ab83c
mov eax, dword [eax + 4]
jmp 0x4ab83f
add eax, 4
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [esp + 0x128], 2
push ebx
push 1
lea ecx, [esp + 0x28]
call fcn.00401774
mov eax, dword [edi + 0xc4]
push 0xffffffffffffffff
lea edx, [eax + 4]
push ebx
lea ecx, [eax + 0x20]
push edx
call fcn.00401665
push dword [edi + 0xc4]
call fcn.004aaa1f
test al, al
je 0x4ab8c9
push str.OriginalDatabase
lea ecx, [esp + 0xe4]
call fcn.0040521c
mov byte [esp + 0x128], 0xb
mov edx, dword [edi + 0xc4]
lea eax, [esp + 0xe0]
lea ecx, [edx + 4]
push eax
call fcn.004aa8c9
mov byte [esp + 0x128], 2
push ebx
push 1
lea ecx, [esp + 0xe8]
call fcn.00401774
lea esi, [esp + 0x20]
lea ecx, [esp + 0xfc]
call fcn.0045ddf0
mov byte [esp + 0x128], 0xc
mov ecx, dword [edi + 0xc4]
push 0xffffffffffffffff
push ebx
add ecx, 4
push eax
call fcn.00401665
mov byte [esp + 0x128], 2
push ebx
push 1
mov ecx, esi
call fcn.00401774
mov eax, dword [edi + 0xc4]
mov esi, str.SourceDir
push esi
lea ecx, [esp + 0xe4]
mov byte [eax + 0x59], 1
call fcn.0040521c
mov byte [esp + 0x128], 0xd
mov ecx, dword [edi + 0xc4]
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004aa9aa
mov byte [esp + 0x128], 0xe
cmp dword [eax + 0x14], ebx
sete byte [esp + 0x17]
mov byte [esp + 0x128], 0xd
push ebx
push 1
lea ecx, [esp + 0x28]
call fcn.00401774
mov byte [esp + 0x128], 2
push ebx
push 1
lea ecx, [esp + 0xe8]
call fcn.00401774
cmp byte [esp + 0x17], bl
je 0x4aba59
mov ecx, dword [edi + 0xc4]
lea eax, [esp + 0xe0]
add ecx, 0x20
push eax
call fcn.0045ca50
mov byte [esp + 0x128], 0xf
lea edi, [esp + 0x20]
lea ecx, [esp + 0xe0]
call fcn.0045e100
mov byte [esp + 0x128], 0x10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xec]
call fcn.00401665
mov byte [esp + 0x128], 0xf
mov eax, edi
push eax
call fcn.00404867
push esi
lea ecx, [esp + 0x24]
call fcn.0040521c
mov byte [esp + 0x128], 0x11
lea edx, [esp + 0x40]
lea ecx, [esp + 0xe0]
call fcn.0045cd00
mov byte [esp + 0x128], 0x12
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0xc4]
call fcn.004aa8c9
mov byte [esp + 0x128], 0x11
push ebx
push 1
lea ecx, [esp + 0x48]
call fcn.00401774
mov byte [esp + 0x128], 0xf
push ebx
push 1
lea ecx, [esp + 0x28]
call fcn.00401774
mov byte [esp + 0x128], 2
lea eax, [esp + 0xe0]
push eax
call fcn.00404867
mov bl, 1
jmp 0x4ab7ad