Function at 0x48d356
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c5a7c
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x502344]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x502344]
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 0x48d3ce
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.0049cdcb
mov esp, ebp
pop ebp
ret
push 0x4e4394
lea ecx, [esp + 0x80]
call fcn.00401bf3
xor esi, esi
mov dword [esp + 0xa8], esi
push esi
lea ecx, [esp + 0x80]
lea edi, [esp + 0x64]
call fcn.0044bde0
pop ecx
mov byte [esp + 0xa8], 2
push esi
push 1
lea ecx, [esp + 0x84]
call fcn.0040115a
mov eax, dword [ebx + 0xc4]
add eax, 4
push eax
call fcn.0048fcb6
test al, al
je 0x48d846
mov eax, dword [ebx + 0xc4]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x48d43c
mov eax, dword [eax + 4]
jmp 0x48d43f
add eax, 4
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00405d54
mov byte [esp + 0xa8], 3
lea edi, [esp + 0x28]
lea ecx, [esp + 0x60]
call fcn.0044cab0
mov byte [esp + 0xa8], 4
cmp dword [eax + 0x18], 8
jb 0x48d472
mov eax, dword [eax + 4]
jmp 0x48d475
add eax, 4
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00405d54
mov byte [esp + 0xa8], 6
lea eax, [esp + 0x28]
push eax
call fcn.0042769f
lea eax, [esp + 0x18]
call fcn.0044f180
push 0x84
call fcn.0049ce57
mov esi, eax
pop ecx
mov dword [esp + 0x24], esi
mov byte [esp + 0xa8], 7
xor edi, edi
cmp esi, edi
je 0x48d4cb
push edi
lea eax, [esp + 0x1c]
push eax
xor eax, eax
call fcn.0046bd8c
mov esi, eax
jmp 0x48d4cd
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.0044c910
mov byte [esp + 0xa8], 9
cmp dword [eax + 0x18], 8
jb 0x48d501
mov eax, dword [eax + 4]
jmp 0x48d504
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00405d54
mov byte [esp + 0xa8], 0xb
push edi
push 1
lea ecx, [esp + 0x30]
call fcn.0040115a
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 0x48d7eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x48d7eb
mov byte [esp + 0xa8], 8
lea ecx, [esp + 0x1c]
call fcn.004058e3
mov byte [esp + 0xa8], 6
push esi
call fcn.0049cdc0
pop ecx
mov byte [esp + 0xa8], 3
lea ecx, [esp + 0x18]
call fcn.004058e3
mov byte [esp + 0xa8], 2
lea ecx, [esp + 0x14]
call fcn.004058e3
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x48d5a1
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00405d54
mov byte [esp + 0xa8], 0xc
mov eax, dword [ebx + 0xc4]
add eax, 0xfc
push eax
lea ebx, [esp + 0x18]
call fcn.00457d82
mov byte [esp + 0xa8], 2
mov ecx, ebx
call fcn.004058e3
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x48d5e7
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.00401896
push dword [ebx + 0xc4]
call fcn.0048c733
test al, al
je 0x48d660
push str.OriginalDatabase
lea ecx, [esp + 0x80]
call fcn.00401bf3
mov byte [esp + 0xa8], 0xd
mov edx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
lea ecx, [edx + 4]
push eax
call fcn.0048c5db
mov byte [esp + 0xa8], 2
push edi
push 1
lea ecx, [esp + 0x84]
call fcn.0040115a
mov ecx, dword [ebx + 0xc4]
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x68]
add ecx, 4
push eax
call fcn.00401896
mov eax, dword [ebx + 0xc4]
mov esi, str.SourceDir
push esi
lea ecx, [esp + 0x80]
mov byte [eax + 0x59], 1
call fcn.00401bf3
mov byte [esp + 0xa8], 0xe
mov ecx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0048c6bb
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.0040115a
mov byte [esp + 0xa8], 2
push edi
push 1
lea ecx, [esp + 0x84]
call fcn.0040115a
cmp byte [esp + 0x13], 0
je 0x48d7e4
mov ecx, dword [ebx + 0xc4]
lea eax, [esp + 0x7c]
add ecx, 0x20
push eax
call fcn.0044b620
mov byte [esp + 0xa8], 0x10
lea edi, [esp + 0x44]
lea ecx, [esp + 0x7c]
call fcn.0044cab0
mov byte [esp + 0xa8], 0x11
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.0044b5b0
mov byte [esp + 0xa8], 0x12
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x88]
call fcn.00401896
mov byte [esp + 0xa8], 0x11
lea eax, [esp + 0x28]
push eax
call fcn.004131b5
mov byte [esp + 0xa8], 0x10
mov eax, edi
push eax
call fcn.0042769f
push esi
lea ecx, [esp + 0x2c]
call fcn.00401bf3
mov byte [esp + 0xa8], 0x13
lea eax, [esp + 0x7c]
push eax
lea esi, [esp + 0x48]
call fcn.0044b900
mov byte [esp + 0xa8], 0x14
mov edx, dword [ebx + 0xc4]
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.0048c5db
mov byte [esp + 0xa8], 0x13
push 0
push 1
mov ecx, esi
call fcn.0040115a
mov byte [esp + 0xa8], 0x10
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.0040115a
mov byte [esp + 0xa8], 2
lea eax, [esp + 0x7c]
push eax
call fcn.004131b5
mov bl, 1
jmp 0x48d87f
mov byte [esp + 0xa8], 8
lea ecx, [esp + 0x1c]
call fcn.004058e3
mov byte [esp + 0xa8], 6
push esi
call fcn.0049cdc0
pop ecx
mov byte [esp + 0xa8], 3
lea ecx, [esp + 0x18]
call fcn.004058e3
mov byte [esp + 0xa8], 2
lea ecx, [esp + 0x14]
call fcn.004058e3
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.004131b5
xor al, al
jmp 0x48d3aa
cmp dword [esp + 0x78], 8
mov ecx, dword [esp + 0x64]
jae 0x48d855
lea ecx, [esp + 0x64]
mov eax, dword [ebx + 0xc4]
add eax, 4
cmp dword [eax + 0x18], 8
jb 0x48d869
mov eax, dword [eax + 4]
jmp 0x48d86c
add eax, 4
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x48d592
xor bl, bl
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.004131b5
mov al, bl
jmp 0x48d3aa