Function at 0x4a34c0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, 0x4e12c8
mov eax, 0x4e2f34
call fcn.00479eb8
mov word [ebp - 0x5c], 8
mov word [ebp - 0x5c], 0x14
lea edx, [ebp - 0x18]
push edx
call fcn.004058c0
pop ecx
add dword [ebp - 0x50], 4
mov word [ebp - 0x5c], 0x20
mov word [ebp - 0x5c], 0x2c
lea ecx, [ebp - 0x30]
push ecx
call fcn.004058c0
pop ecx
add dword [ebp - 0x50], 4
mov word [ebp - 0x5c], 0x20
mov edi, ebx
lea eax, [ebp - 0x30]
cmp edi, eax
je 0x4a3542
mov edx, dword [edi + 4]
mov dword [ebp - 0x70], edx
mov ecx, dword [edi]
mov dword [ebp - 0x74], ecx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x74]
lea edx, [ebp - 0x30]
push edx
call fcn.0040f60c
add esp, 0x10
lea ecx, [ebp - 0x30]
push ecx
call fcn.004a99a8
pop ecx
lea eax, [esi + 0x1a5]
push eax
call fcn.00479a2c
pop ecx
lea edx, [esi + 0x1a5]
add eax, edx
lea ecx, [ebp - 0x84]
push ecx
push eax
lea eax, [esi + 0x1a5]
push eax
lea edx, [ebp - 0x30]
push edx
call fcn.0040fa18
add esp, 0x10
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
cmp edi, eax
je 0x4a35b6
mov edx, dword [edi + 4]
mov dword [ebp - 0x88], edx
mov ecx, dword [edi]
mov dword [ebp - 0x8c], ecx
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
lea edx, [ebp - 0x18]
push edx
call fcn.0040f60c
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
call fcn.004a99a8
pop ecx
lea eax, [esi + 0x1af]
push eax
call fcn.00479a2c
pop ecx
lea edx, [esi + 0x1af]
add eax, edx
lea ecx, [ebp - 0x9c]
push ecx
push eax
lea eax, [esi + 0x1af]
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.0040fa18
add esp, 0x10
mov ecx, dword [ebx]
cmp ecx, dword [ebx + 4]
sete al
and eax, 1
test al, al
je 0x4a36bb
lea edx, [esi + 0x1c2]
push edx
lea ecx, [esi + 0x1bb]
push ecx
lea eax, [esi + 0x1b9]
push eax
push 3
call fcn.0048c898
add esp, 0x10
xor eax, eax
push eax
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x30]
mov dword [ebp - 0xbc], edx
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4a3662
cmp dword [ebp - 0xbc], 0x80
jbe 0x4a3653
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a3662
push dword [ebp - 0xbc]
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc0], ecx
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4a36a5
cmp dword [ebp - 0xc0], 0x80
jbe 0x4a3696
push esi
call fcn.00477a54
pop ecx
jmp 0x4a36a5
push dword [ebp - 0xc0]
push esi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
pop eax
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x4a3b23
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + 4]
sete cl
and ecx, 1
test cl, cl
je 0x4a378c
lea eax, [esi + 0x1de]
push eax
lea edx, [esi + 0x1d7]
push edx
lea ecx, [esi + 0x1d5]
push ecx
push 3
call fcn.0048c898
add esp, 0x10
xor eax, eax
push eax
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x30]
mov dword [ebp - 0xb4], edx
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4a3733
cmp dword [ebp - 0xb4], 0x80
jbe 0x4a3724
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a3733
push dword [ebp - 0xb4]
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0xb8], ecx
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4a3776
cmp dword [ebp - 0xb8], 0x80
jbe 0x4a3767
push esi
call fcn.00477a54
pop ecx
jmp 0x4a3776
push dword [ebp - 0xb8]
push esi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
pop eax
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x4a3b23
lea ecx, [ebp - 0x18]
push ecx
call fcn.004a959c
pop ecx
test al, al
jne 0x4a3843
push dword [ebp - 0x18]
lea eax, [esi + 0x200]
push eax
lea edx, [esi + 0x1f1]
push edx
push 3
call fcn.0048c898
add esp, 0x10
xor eax, eax
push eax
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
mov edi, dword [ebp - 0x20]
sub edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4a37ea
cmp edi, 0x80
jbe 0x4a37e0
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a37ea
push edi
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0xb0], eax
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4a382d
cmp dword [ebp - 0xb0], 0x80
jbe 0x4a381e
push esi
call fcn.00477a54
pop ecx
jmp 0x4a382d
push dword [ebp - 0xb0]
push esi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
pop eax
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x4a3b23
push ebx
call fcn.004a95e4
pop ecx
test al, al
jne 0x4a3905
push ebx
call fcn.004a9630
pop ecx
test al, al
jne 0x4a3905
push dword [ebx]
lea ecx, [esi + 0x21c]
push ecx
lea eax, [esi + 0x212]
push eax
push 3
call fcn.0048c898
add esp, 0x10
xor eax, eax
push eax
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
mov edi, dword [ebp - 0x20]
sub edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4a38ac
cmp edi, 0x80
jbe 0x4a38a2
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a38ac
push edi
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0xac], eax
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4a38ef
cmp dword [ebp - 0xac], 0x80
jbe 0x4a38e0
push esi
call fcn.00477a54
pop ecx
jmp 0x4a38ef
push dword [ebp - 0xac]
push esi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
pop eax
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x4a3b23
lea ecx, [ebp - 0x30]
push ecx
call fcn.004a959c
pop ecx
test al, al
je 0x4a39b0
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
jne 0x4a39b0
mov word [ebp - 0x5c], 0xf8
lea eax, [ebp - 0x48]
push eax
call fcn.004058c0
pop ecx
add dword [ebp - 0x50], 4
mov word [ebp - 0x5c], 0x104
lea edx, [ebp - 0x48]
push edx
push dword [ebx]
call fcn.004a98c4
add esp, 8
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp - 0x44]
je 0x4a3967
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x30]
push edx
call fcn.004aa014
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x48]
mov dword [ebp - 0xa0], ecx
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4a39a4
cmp dword [ebp - 0xa0], 0x80
jbe 0x4a3995
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a39a4
push dword [ebp - 0xa0]
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
mov word [ebp - 0x5c], 0x20
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
jne 0x4a3a79
call sub.KERNEL32.DLL_GetLastError
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x18]
lea eax, [esi + 0x251]
push eax
lea edx, [esi + 0x23e]
push edx
push 3
call fcn.0048c898
add esp, 0x18
xor eax, eax
push eax
dec dword [ebp - 0x50]
mov word [ebp - 0x5c], 0x20
dec dword [ebp - 0x50]
mov edi, dword [ebp - 0x20]
sub edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4a3a20
cmp edi, 0x80
jbe 0x4a3a16
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a3a20
push edi
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0xa8], eax
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4a3a63
cmp dword [ebp - 0xa8], 0x80
jbe 0x4a3a54
push esi
call fcn.00477a54
pop ecx
jmp 0x4a3a63
push dword [ebp - 0xa8]
push esi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
pop eax
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x4a3b23
mov al, 1
push eax
dec dword [ebp - 0x50]
mov word [ebp - 0x5c], 0x20
dec dword [ebp - 0x50]
mov edi, dword [ebp - 0x20]
sub edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4a3ab0
cmp edi, 0x80
jbe 0x4a3aa6
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a3ab0
push edi
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0xa4], eax
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4a3af3
cmp dword [ebp - 0xa4], 0x80
jbe 0x4a3ae4
push esi
call fcn.00477a54
pop ecx
jmp 0x4a3af3
push dword [ebp - 0xa4]
push esi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x50]
dec dword [ebp - 0x50]
pop eax
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x4a3b23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret