Function at 0x47bd98
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b1286
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4e52f4]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x4e52f4]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0xc0]
cmp byte [eax + 0x58], 0
je 0x47be0c
mov al, 1
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00489b1b
mov esp, ebp
pop ebp
ret
push 0x4c9f38
lea ecx, [esp + 0x100]
call fcn.0040432c
xor esi, esi
mov dword [esp + 0x128], esi
push esi
lea ecx, [esp + 0x100]
lea edi, [esp + 0xe4]
call fcn.00442bd0
pop ecx
mov byte [esp + 0x128], 2
push esi
push 1
lea ecx, [esp + 0x104]
call fcn.004043a7
mov eax, dword [ebx + 0xc0]
add eax, 4
push eax
call fcn.0047dee9
test al, al
je 0x47c24c
mov eax, dword [ebx + 0xc0]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x47be7d
mov eax, dword [eax + 4]
jmp 0x47be80
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00412ade
mov byte [esp + 0x128], 3
lea edi, [esp + 0x24]
lea ecx, [esp + 0xe0]
call fcn.00443230
mov byte [esp + 0x128], 4
cmp dword [eax + 0x18], 8
jb 0x47beb6
mov eax, dword [eax + 4]
jmp 0x47beb9
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00412ade
mov byte [esp + 0x128], 6
lea eax, [esp + 0x24]
push eax
call fcn.0047ed56
lea eax, [esp + 0x18]
call fcn.004452a0
push esi
lea eax, [esp + 0x1c]
push eax
xor eax, eax
lea esi, [esp + 0x64]
call fcn.0045d3aa
mov byte [esp + 0x128], 7
lea edx, [esp + 0x24]
lea ecx, [esp + 0xe0]
call fcn.00443090
mov byte [esp + 0x128], 8
cmp dword [eax + 0x18], 8
jb 0x47bf1b
mov eax, dword [eax + 4]
jmp 0x47bf1e
add eax, 4
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00412ade
mov byte [esp + 0x128], 0xa
push 0
push 1
lea ecx, [esp + 0x2c]
call fcn.004043a7
push 1
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
lea esi, [esp + 0x64]
call fcn.0045d545
test eax, eax
je 0x47bfb2
mov byte [esp + 0x128], 7
lea ecx, [esp + 0x20]
call fcn.00403d84
mov byte [esp + 0x128], 6
call fcn.0045d4b2
mov byte [esp + 0x128], 3
lea ecx, [esp + 0x18]
call fcn.00403d84
mov byte [esp + 0x128], 2
lea ecx, [esp + 0x1c]
call fcn.00403d84
or dword [esp + 0x128], 0xffffffff
lea eax, [esp + 0xe0]
push eax
call fcn.0040ca60
xor al, al
jmp 0x47bde8
mov byte [esp + 0x128], 7
lea ecx, [esp + 0x20]
call fcn.00403d84
mov byte [esp + 0x128], 6
lea esi, [esp + 0x5c]
call fcn.0045d4b2
mov byte [esp + 0x128], 3
lea ecx, [esp + 0x18]
call fcn.00403d84
mov byte [esp + 0x128], 2
lea ecx, [esp + 0x1c]
call fcn.00403d84
xor esi, esi
cmp dword [esp + 0xf8], 8
mov eax, dword [esp + 0xe4]
jae 0x47c010
lea eax, [esp + 0xe4]
push eax
mov eax, dword [ebx + 0xc0]
add eax, 0xf8
push eax
call fcn.0044e2a5
cmp dword [esp + 0xf8], 8
mov eax, dword [esp + 0xe4]
jae 0x47c03a
lea eax, [esp + 0xe4]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebx + 0xc0]
push 0xffffffffffffffff
lea edx, [eax + 4]
push esi
lea ecx, [eax + 0x20]
push edx
call fcn.00404072
push dword [ebx + 0xc0]
call fcn.00476425
test al, al
je 0x47c0b0
push str.OriginalDatabase
lea ecx, [esp + 0x100]
call fcn.0040432c
mov byte [esp + 0x128], 0xb
mov edx, dword [ebx + 0xc0]
lea eax, [esp + 0xfc]
lea ecx, [edx + 4]
push eax
call fcn.004762cd
mov byte [esp + 0x128], 2
push esi
push 1
lea ecx, [esp + 0x104]
call fcn.004043a7
mov ecx, dword [ebx + 0xc0]
push 0xffffffffffffffff
push esi
lea eax, [esp + 0xe8]
add ecx, 4
push eax
call fcn.00404072
mov eax, dword [ebx + 0xc0]
mov esi, str.SourceDir
push esi
lea ecx, [esp + 0x100]
mov byte [eax + 0x58], 1
call fcn.0040432c
mov byte [esp + 0x128], 0xc
mov ecx, dword [ebx + 0xc0]
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004763ad
mov byte [esp + 0x128], 0xd
xor edi, edi
cmp dword [eax + 0x14], edi
sete byte [esp + 0x17]
mov byte [esp + 0x128], 0xc
push edi
push 1
lea ecx, [esp + 0x2c]
call fcn.004043a7
mov byte [esp + 0x128], 2
push edi
push 1
lea ecx, [esp + 0x104]
call fcn.004043a7
cmp byte [esp + 0x17], 0
je 0x47c248
mov ecx, dword [ebx + 0xc0]
lea eax, [esp + 0xfc]
add ecx, 0x20
push eax
call fcn.004424d0
mov byte [esp + 0x128], 0xe
lea edi, [esp + 0x40]
lea ecx, [esp + 0xfc]
call fcn.00443230
mov byte [esp + 0x128], 0xf
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.00442460
mov byte [esp + 0x128], 0x10
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x108]
call fcn.00404072
mov byte [esp + 0x128], 0xf
lea eax, [esp + 0x24]
push eax
call fcn.0040ca60
mov byte [esp + 0x128], 0xe
mov eax, edi
push eax
call fcn.0047ed56
push esi
lea ecx, [esp + 0x28]
call fcn.0040432c
mov byte [esp + 0x128], 0x11
lea eax, [esp + 0xfc]
push eax
lea esi, [esp + 0x44]
call fcn.004426f0
mov byte [esp + 0x128], 0x12
mov edx, dword [ebx + 0xc0]
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.004762cd
mov byte [esp + 0x128], 0x11
push 0
push 1
mov ecx, esi
call fcn.004043a7
mov byte [esp + 0x128], 0xe
push 0
push 1
lea ecx, [esp + 0x2c]
call fcn.004043a7
mov byte [esp + 0x128], 2
lea eax, [esp + 0xfc]
push eax
call fcn.0040ca60
mov bl, 1
jmp 0x47c28e
cmp dword [esp + 0xf8], 8
mov ecx, dword [esp + 0xe4]
jae 0x47c264
lea ecx, [esp + 0xe4]
mov eax, dword [ebx + 0xc0]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x47c278
mov eax, dword [eax + 4]
jmp 0x47c27b
add eax, 4
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x47bff8
xor bl, bl
or dword [esp + 0x128], 0xffffffff
lea eax, [esp + 0xe0]
push eax
call fcn.0040ca60
mov al, bl
jmp 0x47bde8