Function at 0x4094e0
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42f745
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
mov al, byte [0x43d28c]
push ebp
push esi
push edi
xor ebx, ebx
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.0040aae0
mov ecx, dword [0x4313b0]
push ecx
push ebx
push 0x43d28c
mov ecx, esi
call fcn.0040a8e0
lea edx, [esp + 0x98]
push edx
call fcn.004197c0
add esp, 0x14
mov edi, 0x438124
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1b0], ebx
repne scasb al, byte es:[edi]
mov eax, dword [0x43d234]
not ecx
dec ecx
push ecx
push 0x438124
push eax
push ebx
mov ecx, 0x43d22c
call fcn.0040c0c0
cmp eax, ebx
jne 0x409ad7
cmp dword [0x43d264], ebx
jbe 0x409ad7
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
call fcn.00415810
add esp, 4
lea edx, [esp + 0x38]
push edx
call fcn.00418640
mov al, byte [esp + 0x3c]
add esp, 4
mov esi, esp
mov dword [esp + 0x24], esp
push ebx
mov ecx, esi
mov byte [esp + 0x1c4], 1
mov byte [esi], al
call fcn.0040aae0
mov ecx, dword [0x4313b0]
lea edx, [esp + 0x38]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.0040a8e0
lea eax, [esp + 0x58]
push eax
call fcn.004197c0
add esp, 0x14
mov cl, byte [esp + 0x12]
push ebx
mov byte [esp + 0x6c], cl
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1b4], 2
call fcn.0040aae0
mov edi, 0x43817c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x43817c
lea ecx, [esp + 0x70]
call fcn.0040ad80
lea edx, [esp + 0x68]
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x7c]
push eax
push ecx
mov byte [esp + 0x1bc], 3
call fcn.0040baa0
push 0x43d23c
lea edx, [esp + 0x48]
push eax
push edx
mov byte [esp + 0x1c8], 4
call fcn.0040baa0
add esp, 0x18
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1b4], 7
call fcn.0040aae0
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1b4], 6
call fcn.0040aae0
mov al, byte [0x43d28c]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push ebx
mov byte [esi], al
mov ecx, esi
call fcn.0040aae0
mov ecx, dword [0x4313b0]
push ecx
push ebx
push 0x43d28c
mov ecx, esi
call fcn.0040a8e0
lea edx, [esp + 0x68]
push edx
call fcn.004197c0
add esp, 0x14
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x1b0], 8
cmp eax, ebx
jne 0x4096bd
mov eax, 0x4313b4
mov ecx, dword [0x43d250]
cmp ecx, ebx
jne 0x4096cc
mov ecx, 0x4313b4
push ebx
push eax
push ecx
call fcn.0041a1e0
add esp, 0xc
cmp eax, 1
jne 0x409a23
push ebx
lea ecx, [esp + 0x9c]
call fcn.00414820
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x1b0], 9
cmp ecx, ebx
jne 0x409702
mov ecx, 0x4313b4
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x40970f
mov eax, 0x4313b4
push ebx
push ecx
push eax
call fcn.00414920
add esp, 0xc
test al, al
je 0x409743
mov ecx, dword [0x43d290]
cmp ecx, ebx
jne 0x40972d
mov ecx, 0x4313b4
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x40973a
mov eax, 0x4313b4
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
sub esp, 0x10
lea eax, [esp + 0x38]
mov esi, esp
mov dword [esp + 0x24], esp
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.0040a480
push esi
call fcn.00417420
add esp, 4
lea edx, [esp + 0x32]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
push 0x4385e0
mov byte [esp + 0x1d8], 0xa
call fcn.0040a5a0
mov byte [esp + 0x1d0], 9
call fcn.004140e0
mov eax, dword [esp + 0x4c]
add esp, 0x20
cmp eax, ebx
jne 0x4097a2
mov eax, 0x4313b4
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push eax
call esi
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jne 0x4097b8
mov eax, 0x4313b4
push eax
call esi
mov ecx, 0x43d25c
call fcn.0040a7e0
sub esp, 0x10
mov esi, eax
mov al, byte [esp + 0x22]
mov ebp, esp
mov dword [esp + 0x28], esp
push ebx
mov ecx, ebp
mov byte [ebp], al
call fcn.0040aae0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.0040af60
test al, al
je 0x409816
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.0040af40
call fcn.0041ac70
add esp, 0x10
mov ecx, 0x43d28c
call fcn.0040a7e0
sub esp, 0x10
mov esi, eax
mov al, byte [esp + 0x22]
mov ebp, esp
mov dword [esp + 0x28], esp
push 0
mov ecx, ebp
mov byte [ebp], al
call fcn.0040aae0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.0040af60
test al, al
je 0x40987a
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.0040af40
sub esp, 0x10
lea eax, [esp + 0x32]
mov esi, esp
mov dword [esp + 0x34], esp
push eax
mov ecx, 0x43d27c
mov byte [esp + 0x1d4], 0xb
call fcn.0040a7e0
push eax
mov ecx, esi
call fcn.0040a5a0
sub esp, 0x10
lea ecx, [esp + 0x53]
mov esi, esp
mov dword [esp + 0x4c], esp
push ecx
mov ecx, 0x43d26c
mov byte [esp + 0x1e4], 0xc
call fcn.0040a7e0
push eax
mov ecx, esi
call fcn.0040a5a0
sub esp, 0x10
lea edx, [esp + 0x53]
mov esi, esp
mov dword [esp + 0x64], esp
push edx
mov ecx, 0x43d25c
mov byte [esp + 0x1f4], 0xd
call fcn.0040a7e0
push eax
mov ecx, esi
call fcn.0040a5a0
mov byte [esp + 0x1f0], 9
call fcn.0041a890
mov al, byte [0x43d25c]
add esp, 0x30
mov esi, esp
xor edi, edi
mov dword [esp + 0x34], esp
push edi
mov ecx, esi
mov byte [esi], al
call fcn.0040aae0
mov ecx, dword [0x4313b0]
push ecx
push edi
push 0x43d25c
mov ecx, esi
call fcn.0040a8e0
sub esp, 0x10
lea edx, [esp + 0x33]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
push str.srvkind
mov byte [esp + 0x1d8], 0xe
call fcn.0040a5a0
mov byte [esp + 0x1d0], 9
call fcn.004140e0
mov al, byte [0x43d26c]
add esp, 0x10
mov ecx, esp
mov dword [esp + 0x34], esp
mov byte [ecx], al
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov edx, dword [0x4313b0]
push edx
push edi
push 0x43d26c
call fcn.0040a8e0
sub esp, 0x10
mov byte [esp + 0x1d0], 0xf
mov ecx, esp
lea eax, [esp + 0x33]
mov dword [esp + 0x3c], esp
push eax
push str.srvname
call fcn.0040a5a0
mov byte [esp + 0x1d0], 9
call fcn.004140e0
mov dl, byte [0x43d28c]
add esp, 0x10
mov ecx, esp
mov dword [esp + 0x34], esp
mov byte [ecx], dl
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov eax, dword [0x4313b0]
push eax
push edi
push 0x43d28c
call fcn.0040a8e0
sub esp, 0x10
lea edx, [esp + 0x33]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
push str.srvlocal
mov byte [esp + 0x1d8], 0x10
call fcn.0040a5a0
mov byte [esp + 0x1d0], 9
call fcn.004140e0
add esp, 0x20
lea ecx, [esp + 0x98]
mov byte [esp + 0x1b0], 8
call fcn.00414860
xor ebx, ebx
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
je 0x409a47
mov al, byte [ecx - 1]
test al, al
je 0x409a3d
cmp al, 0xff
je 0x409a3d
dec al
mov byte [ecx - 1], al
jmp 0x409a47
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x5c], ebx
cmp ecx, ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
je 0x409a77
mov al, byte [ecx - 1]
test al, al
je 0x409a6d
cmp al, 0xff
je 0x409a6d
dec al
mov byte [ecx - 1], al
jmp 0x409a77
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x3c], ebx
cmp ecx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
je 0x409aa7
mov al, byte [ecx - 1]
test al, al
je 0x409a9d
cmp al, 0xff
je 0x409a9d
dec al
mov byte [ecx - 1], al
jmp 0x409aa7
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x4c], ebx
cmp ecx, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
je 0x409ad7
mov al, byte [ecx - 1]
test al, al
je 0x409acd
cmp al, 0xff
je 0x409acd
dec al
mov byte [ecx - 1], al
jmp 0x409ad7
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x8c]
cmp ecx, ebx
je 0x409afe
mov al, byte [ecx - 1]
test al, al
je 0x409af4
cmp al, 0xff
je 0x409af4
dec al
mov byte [ecx - 1], al
jmp 0x409afe
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x1a4
ret