Function at 0x47ec86
Capabilities:
Delete file
Get file size
Move file
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
and dword [esp + 0x14], 0
push ebx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
mov ebx, edi
call fcn.0047eab9
xor ebx, ebx
cmp eax, ebx
jne 0x47ecfe
lea eax, [edi + 0x80]
cmp dword [eax], ebx
jbe 0x47ecc4
push 4
push eax
push 2
push dword [esp + 0x2c]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [esp + 0x28]
push eax
lea esi, [edi + 0x30]
push esi
call fcn.00480219
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x47ed05
push eax
lea eax, [edi + 4]
call fcn.0048caf8
mov esi, dword [esp + 0x14]
push ebx
push dword [esp + 0x24]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x28]
push ecx
lea ecx, [esp + 0x10]
push esi
lea eax, [edi + 0x2c]
push ecx
call fcn.00481e5b
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jne 0x47ed44
mov eax, 0xe0000005
mov dword [edi + 0x20], eax
push eax
lea eax, [edi + 4]
call fcn.0048caf8
mov edi, dword [edi + 0x20]
lea ecx, [esp + 0xc]
call fcn.00402964
mov esi, edi
jmp 0x47ece7
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0041804a
push 0x4ff9b8
lea eax, [esp + 0x14]
push eax
call fcn.00446281
lea esi, [edi + 4]
push 1
mov eax, esi
mov dword [esp + 0x1c], esi
call fcn.0048cae0
mov dword [esp + 0x1c], ebx
cmp byte [edi + 0x4c], bl
je 0x47ed88
lea eax, [esp + 0x10]
call fcn.0047160e
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x28]
call fcn.0047f4a3
mov dword [esp + 0x14], eax
mov eax, esi
call fcn.0048cb0c
test al, al
je 0x47edc6
lea ecx, [esp + 0x10]
call fcn.00402964
lea ecx, [esp + 0xc]
call fcn.00402964
mov esi, 0xe0000008
jmp 0x47ece7
cmp dword [esp + 0x14], ebx
je 0x47edf8
cmp dword [esp + 0x14], 0xe0000013
je 0x47ede1
push dword [esp + 0x14]
mov eax, esi
call fcn.0048caf8
lea ecx, [esp + 0x10]
call fcn.00402964
lea ecx, [esp + 0xc]
call fcn.00402964
jmp 0x47ece3
mov eax, dword [edi + 0x18]
mov ecx, dword [esi]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
cmp ecx, ebx
je 0x47ee1d
push dword [esp + 0xc]
mov eax, dword [ecx]
push dword [esp + 0x28]
call dword [eax + 8]
mov eax, esi
call fcn.0048cb0c
test al, al
je 0x47ee5f
lea edi, [esp + 0x40]
call fcn.00480607
push ebx
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x38]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x10]
call fcn.00402964
lea ecx, [esp + 0xc]
call fcn.00402964
xor esi, esi
jmp 0x47ece7
mov eax, dword [esp + 0x24]
cmp eax, ebx
jbe 0x47ee7c
cmp eax, dword [esp + 0x1c]
jne 0x47ee7c
mov ecx, dword [esi]
cmp ecx, ebx
je 0x47ee28
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
jmp 0x47ee28
push ebx
push ebx
lea ecx, [esp + 0x18]
call fcn.00460900
pop ecx
pop ecx
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x47eebc
push eax
mov eax, esi
call fcn.0048caf8
lea edi, [esp + 0x40]
call fcn.00480607
push ebx
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x38]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x47ede1
xor eax, eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x50], 0xc
sbb ecx, ecx
neg ecx
inc ecx
inc ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebx
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
cmp byte [edi + 0x84], bl
je 0x47ef36
cmp ecx, 2
jne 0x47ef36
push str.S_1_1_0
lea eax, [esp + 0x60]
call fcn.0048cba1
push 0x50056c
lea eax, [esp + 0x60]
call fcn.0048cba1
lea esi, [esp + 0x5c]
call fcn.0048ccc3
mov dword [esp + 0x54], eax
push ebx
push 0x80
push dword [esp + 0x34]
neg eax
sbb eax, eax
lea ecx, [esp + 0x5c]
and eax, ecx
push eax
push ebx
push 0xc0000000
lea esi, [esp + 0x28]
call fcn.00412cef
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x48], eax
cmp eax, 0xffffffff
jne 0x47f093
mov eax, dword [esp + 0x18]
call fcn.0048cb0c
test al, al
je 0x47eff2
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x5c]
call fcn.0048cc48
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x7c], ebx
je 0x47ef9e
push dword [esp + 0x7c]
call esi
cmp dword [esp + 0x78], ebx
je 0x47efaa
push dword [esp + 0x78]
call esi
lea esi, [esp + 0x68]
call fcn.00417584
cmp dword [esp + 0x5c], ebx
je 0x47efc7
push dword [esp + 0x5c]
call fcn.004b1a6a
pop ecx
mov dword [esp + 0x5c], ebx
lea edi, [esp + 0x40]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.00480607
push ebx
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x38]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x47edaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x1c]
call fcn.0048caf8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x5c]
call fcn.0048cc48
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x7c], ebx
je 0x47f029
push dword [esp + 0x7c]
call esi
cmp dword [esp + 0x78], ebx
je 0x47f035
push dword [esp + 0x78]
call esi
lea esi, [esp + 0x68]
call fcn.00417584
cmp dword [esp + 0x5c], ebx
je 0x47f052
push dword [esp + 0x5c]
call fcn.004b1a6a
pop ecx
mov dword [esp + 0x5c], ebx
lea edi, [esp + 0x40]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.00480607
push ebx
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x38]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x10]
call fcn.00402964
lea ecx, [esp + 0xc]
call fcn.00402964
mov esi, dword [esp + 0x2c]
jmp 0x47ece7
cmp dword [esp + 0x1c], ebx
jbe 0x47f0b7
push 2
push ebx
push ebx
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x47f0c7
push dword [esp + 0x1c]
jmp 0x47f0c2
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x47f0c7
push ebx
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0xc800
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], ebx
call fcn.0044445d
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x30]
push eax
push dword [edi + 0x14]
mov eax, edi
call fcn.0047f645
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ebx
cmp eax, ebx
jne 0x47f130
mov eax, dword [esp + 0x30]
cmp eax, ebx
jbe 0x47f1fd
mov ecx, 0xc800
cmp eax, ecx
jb 0x47f110
mov eax, ecx
lea ecx, [esp + 0x2c]
push ecx
push eax
push dword [esp + 0x24]
mov eax, edi
push dword [edi + 0x14]
call fcn.0047f5a6
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x47f1f3
cmp eax, 0x2ee2
je 0x47f14c
cmp eax, 0x2efe
je 0x47f14c
cmp eax, 0x2eff
je 0x47f14c
cmp eax, 0x2f83
jne 0x47f17c
cmp dword [esp + 0x28], 3
je 0x47f15a
cmp dword [esp + 0x28], 4
jne 0x47f17c
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x2c]
mov eax, edi
call fcn.0047f52a
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x47f0de
cmp eax, 0xe0000008
je 0x47f18d
push eax
mov eax, dword [esp + 0x1c]
call fcn.0048caf8
push dword [esp + 0x1c]
call fcn.004b39a5
pop ecx
cmp esi, ebx
je 0x47f1a2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x5c]
call fcn.0048cc48
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x7c], ebx
je 0x47f1bd
push dword [esp + 0x7c]
call esi
cmp dword [esp + 0x78], ebx
je 0x47f1c9
push dword [esp + 0x78]
call esi
lea esi, [esp + 0x68]
call fcn.00417584
cmp dword [esp + 0x5c], ebx
je 0x47f1e6
push dword [esp + 0x5c]
call fcn.004b1a6a
pop ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
jmp 0x47ee99
cmp dword [esp + 0x2c], ebx
jne 0x47f2d8
cmp dword [esp + 0x24], ebx
jbe 0x47f340
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esp + 0x24]
jae 0x47f340
cmp dword [esp + 0x28], 3
je 0x47f15a
cmp dword [esp + 0x28], 4
je 0x47f15a
mov eax, dword [esp + 0x18]
push 0xe000000f
call fcn.0048caf8
push dword [esp + 0x1c]
call fcn.004b39a5
pop ecx
cmp esi, ebx
je 0x47f252
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x5c]
call fcn.0048cc48
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x7c], ebx
je 0x47f26d
push dword [esp + 0x7c]
call esi
cmp dword [esp + 0x78], ebx
je 0x47f279
push dword [esp + 0x78]
call esi
lea esi, [esp + 0x68]
call fcn.00417584
cmp dword [esp + 0x5c], ebx
je 0x47f296
push dword [esp + 0x5c]
call fcn.004b1a6a
pop ecx
mov dword [esp + 0x5c], ebx
lea edi, [esp + 0x40]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.00480607
push ebx
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x38]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x10]
call fcn.00402964
lea ecx, [esp + 0xc]
call fcn.00402964
mov esi, 0xe000000f
jmp 0x47ece7
push ebx
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x34]
push dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47f3ef
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x47f308
push dword [esp + 0x34]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [esp + 0x18]
lea eax, [edi + 0x44]
push eax
call fcn.0048cb23
mov eax, esi
call fcn.0048cb0c
test al, al
je 0x47f0da
push dword [esp + 0x1c]
call fcn.004b39a5
pop ecx
cmp dword [esp + 0x48], ebx
je 0x47f39e
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47f39e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x48], ebx
je 0x47f356
push dword [esp + 0x48]
call esi
mov dword [esp + 0x48], ebx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0xc]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x47f37f
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esp + 0x1c]
call fcn.004b39a5
pop ecx
cmp dword [esp + 0x48], ebx
je 0x47f39e
push dword [esp + 0x48]
call esi
lea esi, [esp + 0x5c]
call fcn.0048cc48
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x7c], ebx
je 0x47f3b9
push dword [esp + 0x7c]
call esi
cmp dword [esp + 0x78], ebx
je 0x47f3c5
push dword [esp + 0x78]
call esi
lea esi, [esp + 0x68]
call fcn.00417584
cmp dword [esp + 0x5c], ebx
je 0x47f3e2
push dword [esp + 0x5c]
call fcn.004b1a6a
pop ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
jmp 0x47ee28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x20], eax
push eax
mov eax, dword [esp + 0x1c]
call fcn.0048caf8
mov eax, dword [edi + 0x20]
push dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
call fcn.004b39a5
pop ecx
cmp esi, ebx
je 0x47f41e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x5c]
call fcn.0048cc48
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x7c], ebx
je 0x47f439
push dword [esp + 0x7c]
call esi
cmp dword [esp + 0x78], ebx
je 0x47f445
push dword [esp + 0x78]
call esi
lea esi, [esp + 0x68]
call fcn.00417584
cmp dword [esp + 0x5c], ebx
je 0x47f462
push dword [esp + 0x5c]
call fcn.004b1a6a
pop ecx
mov dword [esp + 0x5c], ebx
lea edi, [esp + 0x40]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.00480607
push ebx
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x38]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x10]
call fcn.00402964
lea ecx, [esp + 0xc]
call fcn.00402964
mov esi, dword [esp + 0x28]
jmp 0x47ece7