Function at 0x4d1c00
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60c660
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x394]
lea ebx, [esi + 0x394]
cmp edi, ebx
je 0x4d1e5d
cmp dword [esi + 0x3ac], edx
ja 0x4d1e5d
xor ecx, ecx
cmp dword [esi + 0x380], ecx
je 0x4d1c86
mov eax, dword [esi + 0x380]
cmp eax, ecx
je 0x4d1c6b
mov eax, dword [eax + 0xb8]
jmp 0x4d1c6d
xor eax, eax
sub edx, eax
cmp edx, 0x3a98
jb 0x4d1e5d
push ecx
push 0x5b4
jmp 0x4d1e56
mov eax, dword [edi + 0x10]
cmp dword [eax - 0xc], ecx
mov dword [esp + 0x18], ecx
je 0x4d1cb9
mov ecx, dword [esi + 0x3bc]
mov ebx, dword [edi + 0xc]
push eax
mov eax, dword [esi + 0x3b8]
push eax
push ecx
mov ecx, dword [esi + 0x3b4]
push ecx
push esi
lea edi, [esi + 0x38]
call fcn.004d02f0
jmp 0x4d1e4f
mov edx, dword [edi + 0x24]
cmp edx, ecx
jbe 0x4d1ced
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x3bc]
mov edi, dword [edi + 0xc]
push edx
mov edx, dword [esi + 0x3b8]
push ecx
push edx
push eax
mov eax, dword [esi + 0x3b4]
push eax
push esi
add esi, 0x38
mov eax, edi
call fcn.004d0360
jmp 0x4d1e4c
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x1c]
call fcn.00403890
lea esi, [esp + 0x2c]
mov dword [esp + 0x40], 0
call fcn.004ce820
mov esi, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x20]
push edx
lea eax, [edi + 0x14]
push eax
lea eax, [esi + 0x388]
push eax
call fcn.004cf400
push 0x633ca8
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x2c], eax
call fcn.004c5f50
cmp dword [esp + 0x20], 0
mov byte [esp + 0x40], 1
je 0x4d1de7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.004ce880
test al, al
je 0x4d1de7
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x34]
call fcn.004ce840
cmp dword [eax + 4], 0
jg 0x4d1de7
jl 0x4d1d8e
cmp dword [eax], 0
ja 0x4d1de7
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x14]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4d1de7
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
mov dword [eax + 4], ebx
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push 0xc8
push 0
push esi
push eax
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov esi, edi
call fcn.004d17f0
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.004c5e50
jmp 0x4d1e2e
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp dword [eax - 0xc], ecx
jle 0x4d1df4
mov ecx, eax
mov edx, dword [esi + 0x3b8]
mov eax, dword [esi + 0x3bc]
mov ebx, dword [edi + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push edx
push eax
mov eax, dword [esi + 0x3b4]
push eax
push esi
lea edi, [esi + 0x38]
call fcn.004d0280
test eax, eax
mov dword [esp + 0x18], eax
je 0x4d1e2e
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x14]
call fcn.00403870
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
call fcn.00403870
mov eax, dword [esp + 0x18]
mov esi, dword [ebp + 8]
test eax, eax
je 0x4d1e5d
push 0
push eax
mov edi, esi
call fcn.004d1bb0
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4