Function at 0x4b3939
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x114
mov eax, 0x511893
call fcn.004d0d27
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp byte [eax + 0x4d], 0
je 0x4b395a
mov al, 1
jmp 0x4b3dc7
xor ebx, ebx
xor eax, eax
mov edi, 0x537098
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [0x537098], ax
je 0x4b3987
push edi
call fcn.004d635d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004087b1
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x28]
push ebx
lea ecx, [ebp - 0x58]
call fcn.00463b20
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00404a7e
mov eax, dword [esi + 0x68]
add eax, 4
push eax
call fcn.004b6964
test al, al
je 0x4b3af0
mov eax, dword [esi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4b39d2
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x118]
call fcn.004093f6
mov byte [ebp - 4], 3
mov edi, 0x531638
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x120], 0x53155c
mov byte [ebp - 4], 4
mov dword [ebp - 0x120], 0x537a34
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x120]
push ebx
push eax
lea ecx, [ebp - 0x110]
call fcn.004976c1
mov byte [ebp - 4], 6
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00464c00
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4b3a44
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x114]
call fcn.004093f6
mov byte [ebp - 4], 8
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x110]
call fcn.00497c34
mov dword [esi + 0x60], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x114]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.00404a7e
cmp dword [esi + 0x60], ebx
je 0x4b3ac3
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.0047cc2a
mov byte [ebp - 4], 3
mov dword [ebp - 0x120], edi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x118]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
jmp 0x4b3b3f
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.0047cc2a
mov byte [ebp - 4], 3
mov dword [ebp - 0x120], edi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x118]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
jmp 0x4b3b48
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00464c00
mov ecx, eax
mov byte [ebp - 4], 0x10
cmp dword [ecx + 0x14], 8
jb 0x4b3b0a
mov ecx, dword [ecx]
mov eax, dword [esi + 0x68]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4b3b18
mov eax, dword [eax]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
neg ebx
sbb bl, bl
mov byte [ebp - 4], 2
xor edi, edi
lea ecx, [ebp - 0x40]
push edi
push 1
call fcn.00404a7e
add bl, 1
je 0x4b3b46
xor ebx, ebx
xor edi, edi
jmp 0x4b3db6
xor ebx, ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00464c00
mov byte [ebp - 4], 0x13
cmp dword [eax + 0x14], 8
jb 0x4b3b60
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x114]
call fcn.004093f6
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x114]
mov ecx, dword [esi + 0x68]
push eax
add ecx, 0xbc
call fcn.0047af99
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x114]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.00404a7e
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00464c00
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x14], 8
jb 0x4b3bbe
mov eax, dword [eax]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.00404a7e
mov ecx, dword [esi + 0x68]
lea eax, [ecx + 4]
add ecx, 0x1c
push eax
call fcn.0040424c
mov ecx, dword [esi + 0x68]
call fcn.004b2c5b
test al, al
je 0x4b3c43
xor eax, eax
mov dword [ebp - 0x18], ebx
mov edi, str.OriginalDatabase
mov dword [ebp - 0x14], ebx
push edi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.004d635d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004087b1
mov byte [ebp - 4], 0x17
mov ecx, dword [esi + 0x68]
lea eax, [ecx + 4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b2ae6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00404a7e
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.00464c00
mov byte [ebp - 4], 0x18
mov ecx, dword [esi + 0x68]
push eax
add ecx, 4
call fcn.0040c6f8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.00404a7e
mov eax, dword [esi + 0x68]
mov edi, str.SourceDir
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push edi
mov byte [eax + 0x4d], 1
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.004d635d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004087b1
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x28]
mov ecx, dword [esi + 0x68]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004b2b9e
mov byte [ebp - 4], 0x1a
cmp dword [eax + 0x10], ebx
sete bl
mov byte [ebp - 4], 0x19
xor edi, edi
lea ecx, [ebp - 0x40]
push edi
push 1
call fcn.00404a7e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push edi
push 1
call fcn.00404a7e
test bl, bl
je 0x4b3db4
mov eax, dword [esi + 0x68]
sub esp, 0x18
add eax, 0x1c
mov dword [ebp - 0x114], esp
mov ecx, esp
push eax
call fcn.00409d72
mov byte [ebp - 4], 0x1b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004632d0
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00465040
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x40]
push eax
call fcn.00465250
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x70]
push edi
push 1
call fcn.00404a7e
xor eax, eax
mov dword [ebp - 0x18], edi
mov ebx, str.SourceDir
mov dword [ebp - 0x14], edi
push ebx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
call fcn.004d635d
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.004087b1
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.004636f0
mov byte [ebp - 4], 0x21
mov ecx, dword [esi + 0x68]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b2ae6
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x70]
push edi
push 1
call fcn.00404a7e
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x28]
push edi
push 1
call fcn.00404a7e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push edi
push 1
call fcn.00404a7e
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push edi
push 1
call fcn.00404a7e
mov al, bl
call fcn.004d0cd1
ret