Function at 0x486654
Capabilities:
Delete file
Get file size
Move file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
and dword [esp + 0x18], 0
push ebx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x24]
push eax
mov ebx, edi
call fcn.004864ab
xor ebx, ebx
cmp eax, ebx
jne 0x4866c4
lea eax, [edi + 0x70]
cmp dword [eax], ebx
jbe 0x48668f
push 4
push eax
push 2
push dword [esp + 0x30]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [esp + 0x28]
push eax
lea eax, [edi + 0x20]
push eax
call fcn.00487bf8
mov esi, eax
cmp esi, ebx
je 0x4866cb
push ebx
push esi
lea eax, [edi + 4]
call fcn.00490c8b
push ebx
push dword [esp + 0x28]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x24]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [edi + 0x1c]
mov eax, esi
mov dword [esp + 0x30], esi
call fcn.0046a5a0
test al, al
jne 0x4866e4
mov esi, 0xe0000005
jmp 0x4866a3
push esi
lea eax, [esp + 0x14]
push eax
call fcn.00403ccd
push 0x5187d0
lea eax, [esp + 0x14]
push eax
call fcn.00403bd3
mov dword [esp + 0x1c], ebx
cmp byte [edi + 0x3c], bl
je 0x486714
lea eax, [esp + 0x10]
call fcn.0047ba20
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x2c], ebx
call fcn.00486e19
lea esi, [edi + 4]
mov dword [esp + 0x14], eax
mov eax, esi
mov dword [esp + 0x18], esi
call fcn.00490ca7
test al, al
je 0x486754
lea ecx, [esp + 0x10]
call fcn.004036cd
mov esi, 0xe0000008
jmp 0x4866ad
cmp dword [esp + 0x14], ebx
je 0x486782
cmp dword [esp + 0x14], 0xe0000013
je 0x486770
push ebx
push dword [esp + 0x18]
mov eax, esi
call fcn.00490c8b
lea ecx, [esp + 0x10]
call fcn.004036cd
mov esi, dword [esp + 0x14]
jmp 0x4866ad
mov eax, dword [edi + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x78]
mov dword [esp + 0x48], edi
cmp eax, ebx
je 0x4867e3
cmp dword [esp + 0x20], ebx
je 0x4867e3
cmp eax, dword [esp + 0x20]
je 0x4867e3
mov eax, dword [esp + 0x18]
push ebx
mov esi, 0xe0000023
push esi
call fcn.00490c8b
lea edi, [esp + 0x44]
call fcn.004880e6
push ebx
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x10]
call fcn.004036cd
jmp 0x4866ad
mov ecx, dword [esi]
cmp ecx, ebx
je 0x4867fa
mov edx, dword [esp + 0x30]
push dword [edx]
mov eax, dword [ecx]
push dword [esp + 0x24]
push 1
call dword [eax + 0xc]
mov eax, esi
call fcn.00490ca7
test al, al
je 0x486828
lea edi, [esp + 0x44]
call fcn.004880e6
push ebx
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x486741
mov eax, dword [esp + 0x20]
cmp eax, ebx
jbe 0x486872
cmp eax, dword [esp + 0x1c]
jne 0x486872
mov ecx, dword [esi]
cmp ecx, ebx
je 0x486844
mov eax, dword [ecx]
push ebx
push 1
call dword [eax + 0x10]
lea edi, [esp + 0x44]
call fcn.004880e6
push ebx
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x10]
call fcn.004036cd
xor esi, esi
jmp 0x4866ad
push ebx
push ebx
lea ecx, [esp + 0x18]
call fcn.00469fc0
pop ecx
pop ecx
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x4868b3
push ebx
push eax
mov eax, esi
call fcn.00490c8b
lea edi, [esp + 0x44]
call fcn.004880e6
push ebx
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x486770
xor eax, eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x54], 0xc
sbb ecx, ecx
neg ecx
inc ecx
inc ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
cmp byte [edi + 0x74], bl
je 0x486934
cmp ecx, 2
jne 0x486934
push str.S_1_1_0
lea eax, [esp + 0x64]
call fcn.00490cf0
push 0x519204
lea eax, [esp + 0x64]
call fcn.00490cf0
lea esi, [esp + 0x60]
call int.00490e1c
mov dword [esp + 0x58], eax
push ebx
push 0x80
push dword [esp + 0x34]
neg eax
sbb eax, eax
lea ecx, [esp + 0x60]
and eax, ecx
push eax
push ebx
push 0xc0000000
lea esi, [esp + 0x28]
call fcn.004189d3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x4c], eax
cmp eax, 0xffffffff
jne 0x486a77
mov eax, dword [esp + 0x18]
call fcn.00490ca7
test al, al
je 0x4869d8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.00490da1
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x4869a2
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x4869ae
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.00403079
cmp dword [esp + 0x60], ebx
je 0x4869cb
push dword [esp + 0x60]
call fcn.004c6403
pop ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
jmp 0x486805
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x20]
call fcn.00490c8b
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.00490da1
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x486a16
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x486a22
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.00403079
cmp dword [esp + 0x60], ebx
je 0x486a3f
push dword [esp + 0x60]
call fcn.004c6403
pop ecx
mov dword [esp + 0x60], ebx
lea edi, [esp + 0x44]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.004880e6
push ebx
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x10]
call fcn.004036cd
mov esi, dword [esp + 0x30]
jmp 0x4866ad
cmp dword [esp + 0x1c], ebx
jbe 0x486a9b
push 2
push ebx
push ebx
push dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x486aab
push dword [esp + 0x1c]
jmp 0x486aa6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x486aab
push ebx
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 0xc800
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], ebx
call fcn.0044bfe0
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x34]
push eax
push dword [edi + 0xc]
mov eax, edi
call fcn.00486fba
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ebx
cmp eax, ebx
jne 0x486b14
mov eax, dword [esp + 0x34]
cmp eax, ebx
jbe 0x486be8
mov ecx, 0xc800
cmp eax, ecx
jb 0x486af4
mov eax, ecx
lea ecx, [esp + 0x2c]
push ecx
push eax
push dword [esp + 0x24]
mov eax, edi
push dword [edi + 0xc]
call fcn.00486f1b
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x486bde
cmp eax, 0x2ee2
je 0x486b30
cmp eax, 0x2efe
je 0x486b30
cmp eax, 0x2eff
je 0x486b30
cmp eax, 0x2f83
jne 0x486b60
cmp dword [esp + 0x28], 3
je 0x486b3e
cmp dword [esp + 0x28], 4
jne 0x486b60
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
push esi
push dword [esp + 0x30]
mov eax, edi
call fcn.00486e9f
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x486ac2
cmp eax, 0xe0000008
je 0x486b72
push ebx
push eax
mov eax, dword [esp + 0x20]
call fcn.00490c8b
push dword [esp + 0x1c]
call fcn.004c8958
pop ecx
cmp esi, ebx
je 0x486b87
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.00490da1
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x486ba8
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x486bb4
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.00403079
cmp dword [esp + 0x60], ebx
je 0x486bd1
push dword [esp + 0x60]
call fcn.004c6403
pop ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
jmp 0x486890
cmp dword [esp + 0x2c], ebx
jne 0x486cc1
cmp dword [esp + 0x20], ebx
jbe 0x486d2a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esp + 0x20]
jae 0x486d2a
cmp dword [esp + 0x28], 3
je 0x486b3e
cmp dword [esp + 0x28], 4
je 0x486b3e
mov eax, dword [esp + 0x18]
push ebx
push 0xe000000f
call fcn.00490c8b
push dword [esp + 0x1c]
call fcn.004c8958
pop ecx
cmp esi, ebx
je 0x486c3e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.00490da1
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x486c5f
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x486c6b
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.00403079
cmp dword [esp + 0x60], ebx
je 0x486c88
push dword [esp + 0x60]
call fcn.004c6403
pop ecx
mov dword [esp + 0x60], ebx
lea edi, [esp + 0x44]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.004880e6
push ebx
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x10]
call fcn.004036cd
mov esi, 0xe000000f
jmp 0x4866ad
push ebx
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x34]
push dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x486e0a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x486cf1
push dword [esp + 0x38]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov esi, dword [esp + 0x18]
lea eax, [edi + 0x34]
push eax
call fcn.00490cbe
mov eax, esi
call fcn.00490ca7
test al, al
je 0x486abe
push dword [esp + 0x1c]
call fcn.004c8958
pop ecx
cmp dword [esp + 0x4c], ebx
je 0x486981
push dword [esp + 0x4c]
jmp 0x48697b
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x486d3b
push esi
call edi
mov dword [esp + 0x4c], ebx
mov esi, dword [esp + 0x30]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x486d8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esp + 0x18], eax
push eax
mov eax, dword [esp + 0x20]
call fcn.00490c8b
push dword [esp + 0x1c]
call fcn.004c8958
pop ecx
cmp dword [esp + 0x4c], ebx
je 0x486b87
push dword [esp + 0x4c]
call edi
jmp 0x486b87
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x486d9d
mov eax, dword [ecx]
push ebx
push 1
call dword [eax + 0x10]
push dword [esp + 0x1c]
call fcn.004c8958
pop ecx
cmp dword [esp + 0x4c], ebx
je 0x486db3
push dword [esp + 0x4c]
call edi
lea esi, [esp + 0x60]
call fcn.00490da1
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x486dd4
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x486de0
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.00403079
cmp dword [esp + 0x60], ebx
je 0x486dfd
push dword [esp + 0x60]
call fcn.004c6403
pop ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
jmp 0x486844
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x486b67