Function at 0x47608b
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a680c
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4d7488]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0xc0]
cmp byte [eax + 0x58], 0
je 0x4760ff
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.0048297b
mov esp, ebp
pop ebp
ret
push 0x4bd64c
lea ecx, [esp + 0xf8]
call fcn.00403b1e
xor esi, esi
mov dword [esp + 0x120], esi
push esi
lea ecx, [esp + 0xf8]
lea edi, [esp + 0xdc]
call fcn.0043fef0
pop ecx
mov byte [esp + 0x120], 2
push esi
push 1
lea ecx, [esp + 0xfc]
call fcn.00403ecf
mov eax, dword [ebx + 0xc0]
push 4
pop edi
add eax, edi
push eax
call fcn.004781e5
test al, al
je 0x47653f
mov eax, dword [ebx + 0xc0]
add eax, edi
cmp dword [eax + 0x18], 8
jb 0x476171
mov eax, dword [eax + 4]
jmp 0x476174
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00411bf8
mov byte [esp + 0x120], 3
lea edx, [esp + 0x24]
lea ecx, [esp + 0xd8]
call fcn.00440500
mov byte [esp + 0x120], 4
cmp dword [eax + 0x18], 8
jb 0x4761aa
mov eax, dword [eax + 4]
jmp 0x4761ad
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00411bf8
mov byte [esp + 0x120], 6
lea eax, [esp + 0x24]
push eax
call fcn.00473181
lea eax, [esp + 0x18]
call fcn.00442ef0
lea eax, [esp + 0x18]
push eax
xor eax, eax
lea esi, [esp + 0x60]
call fcn.00458344
mov byte [esp + 0x120], 7
lea edx, [esp + 0x24]
lea ecx, [esp + 0xd8]
call fcn.004403c0
mov byte [esp + 0x120], 8
cmp dword [eax + 0x18], 8
jb 0x47620e
mov eax, dword [eax + 4]
jmp 0x476211
add eax, 4
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00411bf8
mov byte [esp + 0x120], 0xa
push 0
push 1
lea ecx, [esp + 0x2c]
call fcn.00403ecf
push 1
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
lea esi, [esp + 0x64]
call fcn.00458436
test eax, eax
je 0x4762a5
mov byte [esp + 0x120], 7
lea ecx, [esp + 0x20]
call fcn.00403833
mov byte [esp + 0x120], 6
call fcn.004583c3
mov byte [esp + 0x120], 3
lea ecx, [esp + 0x18]
call fcn.00403833
mov byte [esp + 0x120], 2
lea ecx, [esp + 0x1c]
call fcn.00403833
or dword [esp + 0x120], 0xffffffff
lea eax, [esp + 0xd8]
push eax
call fcn.0040c1a7
xor al, al
jmp 0x4760db
mov byte [esp + 0x120], 7
lea ecx, [esp + 0x20]
call fcn.00403833
mov byte [esp + 0x120], 6
lea esi, [esp + 0x5c]
call fcn.004583c3
mov byte [esp + 0x120], 3
lea ecx, [esp + 0x18]
call fcn.00403833
mov byte [esp + 0x120], 2
lea ecx, [esp + 0x1c]
call fcn.00403833
xor esi, esi
cmp dword [esp + 0xf0], 8
mov eax, dword [esp + 0xdc]
jae 0x476303
lea eax, [esp + 0xdc]
push eax
mov eax, dword [ebx + 0xc0]
add eax, 0xf8
push eax
call fcn.0044bc61
cmp dword [esp + 0xf0], 8
mov eax, dword [esp + 0xdc]
jae 0x47632d
lea eax, [esp + 0xdc]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebx + 0xc0]
push 0xffffffffffffffff
lea edx, [eax + 4]
add eax, 0x20
push esi
push edx
mov ecx, eax
call fcn.00403dd9
push dword [ebx + 0xc0]
call fcn.004709b0
test al, al
je 0x4763a5
push str.OriginalDatabase
lea ecx, [esp + 0xf8]
call fcn.00403b1e
mov byte [esp + 0x120], 0xb
mov edx, dword [ebx + 0xc0]
lea eax, [esp + 0xf4]
lea ecx, [edx + 4]
push eax
call fcn.00470858
mov byte [esp + 0x120], 2
push esi
push 1
lea ecx, [esp + 0xfc]
call fcn.00403ecf
mov ecx, dword [ebx + 0xc0]
push 0xffffffffffffffff
push esi
lea eax, [esp + 0xe0]
add ecx, edi
push eax
call fcn.00403dd9
mov eax, dword [ebx + 0xc0]
mov edi, str.SourceDir
push edi
lea ecx, [esp + 0xf8]
mov byte [eax + 0x58], 1
call fcn.00403b1e
mov byte [esp + 0x120], 0xc
mov ecx, dword [ebx + 0xc0]
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00470938
mov byte [esp + 0x120], 0xd
cmp dword [eax + 0x14], esi
sete byte [esp + 0x17]
mov byte [esp + 0x120], 0xc
push esi
push 1
lea ecx, [esp + 0x2c]
call fcn.00403ecf
mov byte [esp + 0x120], 2
push esi
push 1
lea ecx, [esp + 0xfc]
call fcn.00403ecf
cmp byte [esp + 0x17], 0
je 0x47653b
mov ecx, dword [ebx + 0xc0]
lea eax, [esp + 0xf4]
add ecx, 0x20
push eax
call fcn.0043f7f0
mov byte [esp + 0x120], 0xe
lea edx, [esp + 0x40]
lea ecx, [esp + 0xf4]
call fcn.00440500
mov byte [esp + 0x120], 0xf
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.0043f7f0
mov byte [esp + 0x120], 0x10
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x100]
call fcn.00403dd9
mov byte [esp + 0x120], 0xf
lea eax, [esp + 0x24]
push eax
call fcn.0040c1a7
mov byte [esp + 0x120], 0xe
lea eax, [esp + 0x40]
push eax
call fcn.00473181
push edi
lea ecx, [esp + 0x28]
call fcn.00403b1e
mov byte [esp + 0x120], 0x11
lea eax, [esp + 0xf4]
push eax
lea esi, [esp + 0x44]
call fcn.0043fa10
mov byte [esp + 0x120], 0x12
mov edx, dword [ebx + 0xc0]
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.00470858
mov byte [esp + 0x120], 0x11
push 0
push 1
mov ecx, esi
call fcn.00403ecf
mov byte [esp + 0x120], 0xe
push 0
push 1
lea ecx, [esp + 0x2c]
call fcn.00403ecf
mov byte [esp + 0x120], 2
lea eax, [esp + 0xf4]
push eax
call fcn.0040c1a7
mov bl, 1
jmp 0x476580
cmp dword [esp + 0xf0], 8
mov ecx, dword [esp + 0xdc]
jae 0x476557
lea ecx, [esp + 0xdc]
mov eax, dword [ebx + 0xc0]
add eax, edi
cmp dword [eax + 0x18], 8
jb 0x47656a
mov eax, dword [eax + 4]
jmp 0x47656d
add eax, 4
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4762eb
xor bl, bl
or dword [esp + 0x120], 0xffffffff
lea eax, [esp + 0xd8]
push eax
call fcn.0040c1a7
mov al, bl
jmp 0x4760db