Function at 0x44e320
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x41c], edi
test edx, edx
je 0x44e5b8
lea ecx, [ebp - 0x210]
call fcn.0044ed40
lea eax, [ebp - 0x210]
push 0
push eax
call dword [sym.imp.MSVCR120.dll_wcschr]
lea ecx, [ebp - 0xa]
add esp, 8
cmp eax, ecx
jb 0x44e383
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov ecx, 0x5c
cmp cx, word [eax - 2]
je 0x44e390
mov dword [eax], ecx
mov esi, dword [sym.imp.MSVCR120.dll_wcsrchr]
test edi, edi
je 0x44e39d
push edi
jmp 0x44e3ad
push 0x5c
push ebx
call esi
add esp, 8
test eax, eax
je 0x44e3c0
add eax, 2
push eax
mov edx, 0x104
lea ecx, [ebp - 0x210]
call fcn.0052fae0
add esp, 4
cmp byte [ebp + 8], 0
je 0x44e3de
push 0x58516c
mov edx, 0x104
lea ecx, [ebp - 0x210]
call fcn.0052fae0
add esp, 4
lea ecx, [ebp - 0x210]
call fcn.0050a140
test al, al
je 0x44e4e7
lea eax, [ebp - 0x210]
push 0x2e
push eax
call esi
mov ecx, eax
add esp, 8
mov edi, ecx
mov dword [ebp - 0x424], ecx
lea eax, [ebp - 0x210]
sub edi, eax
sar edi, 1
cmp edi, 0x104
jae 0x44e423
mov esi, edi
test edi, edi
je 0x44e44b
jmp 0x44e428
mov esi, 0x103
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
mov ecx, dword [ebp - 0x424]
add esp, 0x10
xor eax, eax
mov word [ebp + esi*2 - 0x418], ax
lea esi, [eax + 2]
mov eax, 0x104
sub eax, edi
lea edi, [ebp + edi*2 - 0x418]
mov dword [ebp - 0x420], eax
lea esp, [esp]
push ecx
push esi
push str.__d__s
push eax
push edi
call fcn.0052fc70
lea eax, [ebp - 0x418]
add esp, 0x14
test eax, eax
je 0x44e4d0
xor eax, eax
cmp ax, word [ebp - 0x418]
je 0x44e4d0
push eax
push eax
push 3
push eax
push 3
push closesocket
lea eax, [ebp - 0x418]
push eax
call dword [0x5c008c]
cmp eax, 0xffffffff
jne 0x44e553
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x44e55a
cmp eax, 0x20
je 0x44e55a
lea edx, [ebp - 0x418]
lea ecx, [ebp - 0x210]
call fcn.0044ed40
mov edi, dword [ebp - 0x41c]
cmp byte [ebp + 8], 0
je 0x44e58e
sub esp, 0xc
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], edi
lea edx, [ebp - 0x41c]
mov ecx, 1
push eax
lea eax, [ebp - 0x210]
push 5
push eax
call fcn.004cf130
mov esi, eax
add esp, 0x18
test esi, esi
je 0x44e5b8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec esi
je 0x44e578
mov eax, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
push eax
call dword [0x5c001c]
inc esi
cmp esi, 0x2710
jge 0x44e4e1
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x424]
jmp 0x44e470
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x44e5b8
mov eax, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.00509d60
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
and eax, 0xfffffffc
pop esi
add eax, 4
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret