Function at 0x402300
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6271ce
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x6aab00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], 0
mov dword [ebp - 4], 3
mov eax, dword [ebp + 0x10]
push 0x663ea8
push eax
call fcn.0054da9f
add esp, 8
test eax, eax
sete al
test al, al
je 0x4023a7
lea esi, [ebp - 0x414]
call fcn.004046d0
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 4
call fcn.004017f0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x14]
push 0x663ea8
push ecx
call fcn.0054da9f
add esp, 8
test eax, eax
sete al
test al, al
je 0x4023cd
lea edx, [ebp + 0x10]
push edx
lea ecx, [ebp + 0x14]
call fcn.004017f0
lea esi, [ebp - 0x414]
call fcn.004048b0
mov byte [ebp - 4], 5
mov eax, dword [eax]
push eax
push str.WindowsDir_
lea ecx, [ebp + 0x10]
call fcn.00402a60
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402412
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x414]
call fcn.004047b0
mov byte [ebp - 4], 6
mov eax, dword [eax]
push eax
push str.SystemDir_
lea ecx, [ebp + 0x10]
call fcn.00402a60
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402457
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x414]
call fcn.004046d0
mov byte [ebp - 4], 7
mov eax, dword [eax]
push eax
push str.TempDir_
lea ecx, [ebp + 0x10]
call fcn.00402a60
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40249c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x414]
call fcn.004048b0
mov byte [ebp - 4], 8
mov eax, dword [eax]
push eax
push str.WindowsDir_
lea ecx, [ebp + 0x14]
call fcn.00402a60
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x414]
call fcn.004047b0
mov byte [ebp - 4], 9
mov eax, dword [eax]
push eax
push str.SystemDir_
lea ecx, [ebp + 0x14]
call fcn.00402a60
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402526
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x414]
call fcn.004046d0
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
push eax
push str.TempDir_
lea ecx, [ebp + 0x14]
call fcn.00402a60
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40256b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0044ce39
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402585
push 0x80004005
call fcn.00401b80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x418], eax
cmp dword [ebp + 0x1c], 0
mov byte [ebp - 4], 0xb
je 0x4025b5
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x418]
call fcn.004017f0
jmp 0x4027a7
mov edx, dword [ebp + 0xc]
push 0x663ea8
push edx
call fcn.0054da9f
add esp, 8
test eax, eax
setne al
test al, al
je 0x402625
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x418]
call fcn.004017f0
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x418]
push ecx
lea ecx, [edi + 0x1c]
call fcn.0044e988
mov ecx, eax
test esi, esi
jne 0x402604
xor edx, edx
push edx
push esi
call fcn.00401a60
jmp 0x4027a7
mov edx, esi
lea edi, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x402610
sub edx, edi
push edx
push esi
call fcn.00401a60
jmp 0x4027a7
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x418]
push edx
push eax
mov ecx, edi
call fcn.0044e8c5
test eax, eax
jne 0x4027a7
call fcn.0054d750
cdq
mov ecx, 5
idiv ecx
xor esi, esi
lea edi, [edx + 3]
test edi, edi
jle 0x402671
call fcn.0054d750
cdq
mov ecx, 0x1a
idiv ecx
inc esi
add dl, 0x61
mov byte [ebp + esi - 0x411], dl
cmp esi, edi
jl 0x402655
mov byte [ebp + esi - 0x410], 0
call fcn.0044ce39
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402693
push 0x80004005
call fcn.00401b80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x414], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp + 8]
push 0x2e
push ecx
call fcn.0054dca1
add esp, 8
test eax, eax
je 0x4026e3
sub eax, dword [ebp + 8]
mov esi, eax
test esi, esi
jle 0x4026e3
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x414]
call fcn.004017f0
push esi
push 0
lea ecx, [ebp - 0x414]
call fcn.00402930
jmp 0x4026f5
push 0
push 0x663ea8
lea ecx, [ebp - 0x414]
call fcn.00401a60
mov ebx, dword [ebp - 0x414]
mov eax, ebx
mov edx, ebx
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402700
lea edi, [ebp - 0x410]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402710
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x410]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402731
sub eax, edx
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x418]
call fcn.00401a60
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x418]
push ecx
mov ecx, dword [ebp - 0x424]
call fcn.0044e988
mov ecx, eax
test esi, esi
jne 0x40276c
xor edx, edx
jmp 0x40277a
mov edx, esi
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x402771
sub edx, edi
push edx
push esi
call fcn.00401a60
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4027a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x420]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0x41c]
push eax
call fcn.00402d70
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp + 0x14]
push edx
push ebx
mov byte [ebp - 4], 0xd
call fcn.00402d70
mov eax, dword [ebx]
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
test ecx, ecx
jne 0x4027ea
push 0x80004005
call fcn.00401b80
push eax
mov eax, dword [ebp - 0x41c]
push eax
call fcn.0054da9f
add esp, 8
test eax, eax
setne al
test al, al
je 0x402815
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x41c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [ebp + 0x18], 0
je 0x402828
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40284e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402874
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402897
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402903
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054cec4
mov esp, ebp
pop ebp
ret 0x18