Function at 0x46ec05
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x497ebf
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4bf490]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x4bf490]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xc0]
xor ebx, ebx
mov dword [esp + 0x20], esi
cmp byte [eax + 0x58], bl
je 0x46ec7e
mov al, 1
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00476b4b
mov esp, ebp
pop ebp
ret
push 0x4aa07c
lea ecx, [esp + 0xdc]
call fcn.00403740
mov dword [esp + 0x120], ebx
push ebx
lea ecx, [esp + 0xdc]
lea edi, [esp + 0xf8]
call fcn.004339c0
pop ecx
mov byte [esp + 0x120], 2
push ebx
push 1
lea ecx, [esp + 0xe0]
call fcn.0040292b
mov eax, dword [esi + 0xc0]
add eax, 4
push eax
call fcn.00470abe
test al, al
je 0x46f0ae
mov esi, dword [esi + 0xc0]
add esi, 4
cmp dword [esi + 0x18], 8
jb 0x46eced
mov esi, dword [esi + 4]
jmp 0x46ecf0
add esi, 4
push esi
lea eax, [esp + 0x20]
push eax
call fcn.0040f504
mov byte [esp + 0x120], 3
lea esi, [esp + 0x24]
lea ebx, [esp + 0xf4]
call fcn.0040897c
mov byte [esp + 0x120], 4
cmp dword [eax + 0x18], 8
jb 0x46ed26
mov eax, dword [eax + 4]
jmp 0x46ed29
add eax, 4
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040f504
mov byte [esp + 0x120], 6
lea eax, [esp + 0x24]
push eax
call fcn.0041bb1d
lea eax, [esp + 0x14]
call fcn.0043e5d0
lea eax, [esp + 0x14]
push eax
xor eax, eax
lea esi, [esp + 0x60]
call fcn.0044fa7e
mov byte [esp + 0x120], 7
lea esi, [esp + 0x24]
lea ebx, [esp + 0xf4]
call fcn.00408944
mov byte [esp + 0x120], 8
cmp dword [eax + 0x18], 8
jb 0x46ed8a
mov eax, dword [eax + 4]
jmp 0x46ed8d
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040f504
mov byte [esp + 0x120], 0xa
push 0
push 1
lea ecx, [esp + 0x2c]
call fcn.0040292b
push 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
lea esi, [esp + 0x64]
call fcn.0044fb70
test eax, eax
je 0x46ee21
mov byte [esp + 0x120], 7
lea ecx, [esp + 0x18]
call fcn.004071b8
mov byte [esp + 0x120], 6
call fcn.0044fafd
mov byte [esp + 0x120], 3
lea ecx, [esp + 0x14]
call fcn.004071b8
mov byte [esp + 0x120], 2
lea ecx, [esp + 0x1c]
call fcn.004071b8
or dword [esp + 0x120], 0xffffffff
lea eax, [esp + 0xf4]
push eax
call fcn.00408871
xor al, al
jmp 0x46ec5a
mov byte [esp + 0x120], 7
lea ecx, [esp + 0x18]
call fcn.004071b8
mov byte [esp + 0x120], 6
lea esi, [esp + 0x5c]
call fcn.0044fafd
mov byte [esp + 0x120], 3
lea ecx, [esp + 0x14]
call fcn.004071b8
mov byte [esp + 0x120], 2
lea ecx, [esp + 0x1c]
call fcn.004071b8
mov esi, dword [esp + 0x20]
mov ebx, dword [esi + 0xc0]
lea eax, [esp + 0xf4]
add ebx, 0xf8
push eax
call fcn.0043b2a0
cmp dword [esp + 0x10c], 8
mov eax, dword [esp + 0xf8]
jae 0x46ee9a
lea eax, [esp + 0xf8]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi + 0xc0]
push 0xffffffffffffffff
xor ebx, ebx
lea edx, [eax + 4]
push ebx
lea ecx, [eax + 0x20]
push edx
call fcn.00403486
push dword [esi + 0xc0]
call fcn.00469569
test al, al
je 0x46ef12
push str.OriginalDatabase
lea ecx, [esp + 0xdc]
call fcn.00403740
mov byte [esp + 0x120], 0xb
mov edx, dword [esi + 0xc0]
lea eax, [esp + 0xd8]
lea ecx, [edx + 4]
push eax
call fcn.00469411
mov byte [esp + 0x120], 2
push ebx
push 1
lea ecx, [esp + 0xe0]
call fcn.0040292b
mov ecx, dword [esi + 0xc0]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xfc]
add ecx, 4
push eax
call fcn.00403486
mov eax, dword [esi + 0xc0]
mov edi, str.SourceDir
push edi
lea ecx, [esp + 0xdc]
mov byte [eax + 0x58], 1
call fcn.00403740
mov byte [esp + 0x120], 0xc
mov ecx, dword [esi + 0xc0]
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004694f1
mov byte [esp + 0x120], 0xd
cmp dword [eax + 0x14], ebx
sete byte [esp + 0x13]
mov byte [esp + 0x120], 0xc
push ebx
push 1
lea ecx, [esp + 0x2c]
call fcn.0040292b
mov byte [esp + 0x120], 2
push ebx
push 1
lea ecx, [esp + 0xe0]
call fcn.0040292b
cmp byte [esp + 0x13], bl
je 0x46f0aa
mov ecx, dword [esi + 0xc0]
lea eax, [esp + 0xd8]
add ecx, 0x20
push eax
call fcn.00433500
mov byte [esp + 0x120], 0xe
lea esi, [esp + 0x40]
lea ebx, [esp + 0xd8]
call fcn.0040897c
mov byte [esp + 0x120], 0xf
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.00433500
mov byte [esp + 0x120], 0x10
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xe4]
call fcn.00403486
mov byte [esp + 0x120], 0xf
lea eax, [esp + 0x24]
push eax
call fcn.00408871
mov byte [esp + 0x120], 0xe
mov eax, esi
push eax
call fcn.0041bb1d
push edi
lea ecx, [esp + 0x28]
call fcn.00403740
mov byte [esp + 0x120], 0x11
lea eax, [esp + 0xd8]
push eax
lea esi, [esp + 0x44]
call fcn.00433610
mov byte [esp + 0x120], 0x12
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0xc0]
call fcn.00469411
mov byte [esp + 0x120], 0x11
push ebx
push 1
mov ecx, esi
call fcn.0040292b
mov byte [esp + 0x120], 0xe
push ebx
push 1
lea ecx, [esp + 0x2c]
call fcn.0040292b
mov byte [esp + 0x120], 2
lea eax, [esp + 0xd8]
push eax
call fcn.00408871
mov bl, 1
jmp 0x46f0ee
cmp dword [esp + 0x10c], 8
mov ecx, dword [esp + 0xf8]
jae 0x46f0c6
lea ecx, [esp + 0xf8]
mov eax, dword [esi + 0xc0]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x46f0da
mov eax, dword [eax + 4]
jmp 0x46f0dd
add eax, 4
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x46ee69
or dword [esp + 0x120], 0xffffffff
lea eax, [esp + 0xf4]
push eax
call fcn.00408871
mov al, bl
jmp 0x46ec5a