Function at 0x49bb20
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dc679
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x51f714]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x51f714]
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 0x49bb98
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.004ad67b
mov esp, ebp
pop ebp
ret
push 0x4fd858
lea ecx, [esp + 0x80]
call fcn.0040417e
xor esi, esi
mov dword [esp + 0xa8], esi
push esi
lea ecx, [esp + 0x80]
lea edi, [esp + 0x64]
call fcn.004581f0
pop ecx
mov byte [esp + 0xa8], 2
push esi
push 1
lea ecx, [esp + 0x84]
call fcn.00403537
mov eax, dword [ebx + 0xc4]
add eax, 4
push eax
call fcn.0049e7bb
test al, al
je 0x49c010
mov eax, dword [ebx + 0xc4]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x49bc06
mov eax, dword [eax + 4]
jmp 0x49bc09
add eax, 4
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004046e4
mov byte [esp + 0xa8], 3
lea edi, [esp + 0x28]
lea ecx, [esp + 0x60]
call fcn.00458ed0
mov byte [esp + 0xa8], 4
cmp dword [eax + 0x18], 8
jb 0x49bc3c
mov eax, dword [eax + 4]
jmp 0x49bc3f
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004046e4
mov byte [esp + 0xa8], 6
lea eax, [esp + 0x28]
push eax
call fcn.004a06d3
lea eax, [esp + 0x18]
call fcn.0045c2d0
push 0x88
call fcn.004aefb8
mov esi, eax
pop ecx
mov dword [esp + 0x24], esi
mov byte [esp + 0xa8], 7
xor edi, edi
cmp esi, edi
je 0x49bc95
push edi
lea eax, [esp + 0x1c]
push eax
xor eax, eax
call fcn.0047a3b0
mov esi, eax
jmp 0x49bc97
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.00458d30
mov byte [esp + 0xa8], 9
cmp dword [eax + 0x18], 8
jb 0x49bccb
mov eax, dword [eax + 4]
jmp 0x49bcce
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004046e4
mov byte [esp + 0xa8], 0xb
push edi
push 1
lea ecx, [esp + 0x30]
call fcn.00403537
mov eax, dword [esi]
push edi
push edi
push 1
push edi
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
jne 0x49bfb5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x49bfb5
mov byte [esp + 0xa8], 8
lea ecx, [esp + 0x1c]
call fcn.00402907
mov byte [esp + 0xa8], 6
push esi
call fcn.004ad670
pop ecx
mov byte [esp + 0xa8], 3
lea ecx, [esp + 0x18]
call fcn.00402907
mov byte [esp + 0xa8], 2
lea ecx, [esp + 0x14]
call fcn.00402907
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x49bd6b
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004046e4
mov byte [esp + 0xa8], 0xc
mov eax, dword [ebx + 0xc4]
add eax, 0xfc
push eax
lea ebx, [esp + 0x18]
call fcn.004651b4
mov byte [esp + 0xa8], 2
mov ecx, ebx
call fcn.00402907
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x49bdb1
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.00403e21
push dword [ebx + 0xc4]
call fcn.0049ad8c
test al, al
je 0x49be2a
push str.OriginalDatabase
lea ecx, [esp + 0x80]
call fcn.0040417e
mov byte [esp + 0xa8], 0xd
mov edx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
lea ecx, [edx + 4]
push eax
call fcn.0049abc4
mov byte [esp + 0xa8], 2
push edi
push 1
lea ecx, [esp + 0x84]
call fcn.00403537
mov ecx, dword [ebx + 0xc4]
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x68]
add ecx, 4
push eax
call fcn.00403e21
mov eax, dword [ebx + 0xc4]
mov esi, str.SourceDir
push esi
lea ecx, [esp + 0x80]
mov byte [eax + 0x59], 1
call fcn.0040417e
mov byte [esp + 0xa8], 0xe
mov ecx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0049ad14
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.00403537
mov byte [esp + 0xa8], 2
push edi
push 1
lea ecx, [esp + 0x84]
call fcn.00403537
cmp byte [esp + 0x13], 0
je 0x49bfae
mov ecx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
add ecx, 0x20
push eax
call fcn.00457a30
mov byte [esp + 0xa8], 0x10
lea edi, [esp + 0x44]
lea ecx, [esp + 0x7c]
call fcn.00458ed0
mov byte [esp + 0xa8], 0x11
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.004579c0
mov byte [esp + 0xa8], 0x12
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x88]
call fcn.00403e21
mov byte [esp + 0xa8], 0x11
lea eax, [esp + 0x28]
push eax
call fcn.004035db
mov byte [esp + 0xa8], 0x10
mov eax, edi
push eax
call fcn.004a06d3
push esi
lea ecx, [esp + 0x2c]
call fcn.0040417e
mov byte [esp + 0xa8], 0x13
lea eax, [esp + 0x7c]
push eax
lea esi, [esp + 0x48]
call fcn.00457d10
mov byte [esp + 0xa8], 0x14
mov edx, dword [ebx + 0xc4]
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.0049abc4
mov byte [esp + 0xa8], 0x13
push 0
push 1
mov ecx, esi
call fcn.00403537
mov byte [esp + 0xa8], 0x10
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00403537
mov byte [esp + 0xa8], 2
lea eax, [esp + 0x7c]
push eax
call fcn.004035db
mov bl, 1
jmp 0x49c049
mov byte [esp + 0xa8], 8
lea ecx, [esp + 0x1c]
call fcn.00402907
mov byte [esp + 0xa8], 6
push esi
call fcn.004ad670
pop ecx
mov byte [esp + 0xa8], 3
lea ecx, [esp + 0x18]
call fcn.00402907
mov byte [esp + 0xa8], 2
lea ecx, [esp + 0x14]
call fcn.00402907
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.004035db
xor al, al
jmp 0x49bb74
cmp dword [esp + 0x78], 8
mov ecx, dword [esp + 0x64]
jae 0x49c01f
lea ecx, [esp + 0x64]
mov eax, dword [ebx + 0xc4]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x49c033
mov eax, dword [eax + 4]
jmp 0x49c036
add eax, 4
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x49bd5c
xor bl, bl
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.004035db
mov al, bl
jmp 0x49bb74