Function at 0x48c4ae
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c666a
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x501344]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x501344]
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
je 0x48c522
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.0049c07b
mov esp, ebp
pop ebp
ret
push 0x4e335c
lea ecx, [esp + 0x80]
call fcn.004021b7
xor esi, esi
mov dword [esp + 0xa8], esi
push esi
lea ecx, [esp + 0x80]
lea edi, [esp + 0x64]
call fcn.0044bf30
pop ecx
mov byte [esp + 0xa8], 2
push esi
push 1
lea ecx, [esp + 0x84]
call fcn.00401800
mov eax, dword [ebx + 0xc4]
add eax, 4
push eax
call fcn.0048ede3
test al, al
je 0x48c973
mov eax, dword [ebx + 0xc4]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x48c590
mov eax, dword [eax + 4]
jmp 0x48c593
add eax, 4
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00405d14
mov byte [esp + 0xa8], 3
lea edi, [esp + 0x28]
lea ecx, [esp + 0x60]
call fcn.0044cbf0
mov byte [esp + 0xa8], 4
cmp dword [eax + 0x18], 8
jb 0x48c5c6
mov eax, dword [eax + 4]
jmp 0x48c5c9
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00405d14
mov byte [esp + 0xa8], 6
lea eax, [esp + 0x28]
push eax
call fcn.004856ad
lea eax, [esp + 0x18]
call fcn.0044f3f0
push 0x84
call fcn.0049c107
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0xa8], 7
cmp eax, esi
je 0x48c621
push esi
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
xor eax, eax
call fcn.0046b208
mov edi, eax
xor esi, esi
jmp 0x48c623
xor edi, edi
mov byte [esp + 0xa8], 6
mov dword [esp + 0x24], edi
mov byte [esp + 0xa8], 8
lea edx, [esp + 0x28]
lea ecx, [esp + 0x60]
call fcn.0044ca50
mov byte [esp + 0xa8], 9
cmp dword [eax + 0x18], 8
jb 0x48c657
mov eax, dword [eax + 4]
jmp 0x48c65a
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00405d14
mov byte [esp + 0xa8], 0xb
push esi
push 1
lea ecx, [esp + 0x30]
call fcn.00401800
mov eax, dword [edi]
push esi
push esi
push 1
push esi
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call dword [eax + 0x10]
test eax, eax
jne 0x48c918
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
test eax, eax
jne 0x48c918
mov byte [esp + 0xa8], 8
lea ecx, [esp + 0x1c]
call fcn.004058a3
mov byte [esp + 0xa8], 6
push edi
call fcn.0049c070
pop ecx
mov byte [esp + 0xa8], 3
lea ecx, [esp + 0x18]
call fcn.004058a3
mov byte [esp + 0xa8], 2
lea ecx, [esp + 0x20]
call fcn.004058a3
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x48c6f7
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebx + 0xc4]
add eax, 0xfc
push eax
call fcn.00457306
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x48c718
lea eax, [esp + 0x64]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebx + 0xc4]
push 0xffffffffffffffff
lea edx, [eax + 4]
push esi
lea ecx, [eax + 0x20]
push edx
call fcn.00401efd
push dword [ebx + 0xc4]
call fcn.0048b88b
test al, al
je 0x48c78b
push str.OriginalDatabase
lea ecx, [esp + 0x80]
call fcn.004021b7
mov byte [esp + 0xa8], 0xc
mov edx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
lea ecx, [edx + 4]
push eax
call fcn.0048b733
mov byte [esp + 0xa8], 2
push esi
push 1
lea ecx, [esp + 0x84]
call fcn.00401800
mov ecx, dword [ebx + 0xc4]
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x68]
add ecx, 4
push eax
call fcn.00401efd
mov eax, dword [ebx + 0xc4]
mov esi, str.SourceDir
push esi
lea ecx, [esp + 0x80]
mov byte [eax + 0x59], 1
call fcn.004021b7
mov byte [esp + 0xa8], 0xd
mov ecx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0048b813
mov byte [esp + 0xa8], 0xe
xor edi, edi
cmp dword [eax + 0x14], edi
sete byte [esp + 0x17]
mov byte [esp + 0xa8], 0xd
push edi
push 1
lea ecx, [esp + 0x30]
call fcn.00401800
mov byte [esp + 0xa8], 2
push edi
push 1
lea ecx, [esp + 0x84]
call fcn.00401800
cmp byte [esp + 0x17], 0
je 0x48c911
mov ecx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
add ecx, 0x20
push eax
call fcn.0044b770
mov byte [esp + 0xa8], 0xf
lea edi, [esp + 0x44]
lea ecx, [esp + 0x7c]
call fcn.0044cbf0
mov byte [esp + 0xa8], 0x10
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.0044b700
mov byte [esp + 0xa8], 0x11
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x88]
call fcn.00401efd
mov byte [esp + 0xa8], 0x10
lea eax, [esp + 0x28]
push eax
call fcn.00413210
mov byte [esp + 0xa8], 0xf
mov eax, edi
push eax
call fcn.004856ad
push esi
lea ecx, [esp + 0x2c]
call fcn.004021b7
mov byte [esp + 0xa8], 0x12
lea eax, [esp + 0x7c]
push eax
lea esi, [esp + 0x48]
call fcn.0044ba50
mov byte [esp + 0xa8], 0x13
mov edx, dword [ebx + 0xc4]
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.0048b733
mov byte [esp + 0xa8], 0x12
push 0
push 1
mov ecx, esi
call fcn.00401800
mov byte [esp + 0xa8], 0xf
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00401800
mov byte [esp + 0xa8], 2
lea eax, [esp + 0x7c]
push eax
call fcn.00413210
mov bl, 1
jmp 0x48c9ac
mov byte [esp + 0xa8], 8
lea ecx, [esp + 0x1c]
call fcn.004058a3
mov byte [esp + 0xa8], 6
push edi
call fcn.0049c070
pop ecx
mov byte [esp + 0xa8], 3
lea ecx, [esp + 0x18]
call fcn.004058a3
mov byte [esp + 0xa8], 2
lea ecx, [esp + 0x20]
call fcn.004058a3
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.00413210
xor al, al
jmp 0x48c4fe
cmp dword [esp + 0x78], 8
mov ecx, dword [esp + 0x64]
jae 0x48c982
lea ecx, [esp + 0x64]
mov eax, dword [ebx + 0xc4]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x48c996
mov eax, dword [eax + 4]
jmp 0x48c999
add eax, 4
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x48c6e8
xor bl, bl
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.00413210
mov al, bl
jmp 0x48c4fe