Function at 0x41af58
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, 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.0041adab
xor ebx, ebx
cmp eax, ebx
jne 0x41afc8
lea eax, [edi + 0x70]
cmp dword [eax], ebx
jbe 0x41af93
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.0041c581
mov esi, eax
cmp esi, ebx
je 0x41afcf
push ebx
push esi
lea eax, [edi + 4]
call fcn.00427d37
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.0040a838
test al, al
jne 0x41afe8
mov esi, 0xe0000005
jmp 0x41afa7
mov eax, dword [esi]
sub eax, 0x10
call fcn.00409c66
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x4528d8
lea eax, [esp + 0x14]
push eax
call fcn.00402105
mov dword [esp + 0x20], ebx
cmp byte [edi + 0x3c], bl
je 0x41b01e
lea eax, [esp + 0x10]
call fcn.0040f6f0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x2c]
mov eax, edi
mov dword [esp + 0x28], ebx
call fcn.0041b735
lea esi, [edi + 4]
mov dword [esp + 0x14], eax
mov eax, esi
mov dword [esp + 0x18], esi
call fcn.00427d53
test al, al
je 0x41b063
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040464c
mov esi, 0xe0000008
jmp 0x41afb1
cmp dword [esp + 0x14], ebx
je 0x41b094
cmp dword [esp + 0x14], 0xe0000013
je 0x41b07f
push ebx
push dword [esp + 0x18]
mov eax, esi
call fcn.00427d37
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040464c
mov esi, dword [esp + 0x14]
jmp 0x41afb1
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 0x41b0f8
cmp dword [esp + 0x1c], ebx
je 0x41b0f8
cmp eax, dword [esp + 0x1c]
je 0x41b0f8
mov eax, dword [esp + 0x18]
push ebx
mov esi, 0xe0000023
push esi
call fcn.00427d37
lea edi, [esp + 0x44]
call fcn.0041c9d1
push ebx
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040464c
jmp 0x41afb1
mov ecx, dword [esi]
cmp ecx, ebx
je 0x41b10f
mov edx, dword [esp + 0x30]
push dword [edx]
mov eax, dword [ecx]
push dword [esp + 0x20]
push 1
call dword [eax + 0xc]
mov eax, esi
call fcn.00427d53
test al, al
je 0x41b13d
lea edi, [esp + 0x44]
call fcn.0041c9d1
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 0x41b04d
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jbe 0x41b18a
cmp eax, dword [esp + 0x20]
jne 0x41b18a
mov ecx, dword [esi]
cmp ecx, ebx
je 0x41b159
mov eax, dword [ecx]
push ebx
push 1
call dword [eax + 0x10]
lea edi, [esp + 0x44]
call fcn.0041c9d1
push ebx
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040464c
xor esi, esi
jmp 0x41afb1
push ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0040a675
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41b1cd
push ebx
push eax
mov eax, esi
call fcn.00427d37
lea edi, [esp + 0x44]
call fcn.0041c9d1
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 0x41b07f
xor eax, eax
cmp eax, dword [esp + 0x20]
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 0x41b24e
cmp ecx, 2
jne 0x41b24e
push str.S_1_1_0
lea eax, [esp + 0x64]
call fcn.00427d9c
push 0x4533a8
lea eax, [esp + 0x64]
call fcn.00427d9c
lea esi, [esp + 0x60]
call fcn.00427ec8
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.00402073
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x4c], eax
cmp eax, 0xffffffff
jne 0x41b394
mov eax, dword [esp + 0x18]
call fcn.00427d53
test al, al
je 0x41b2f2
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.00427e4d
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41b2bc
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41b2c8
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.0041080e
cmp dword [esp + 0x60], ebx
je 0x41b2e5
push dword [esp + 0x60]
call fcn.004318d7
pop ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
jmp 0x41b11a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x20]
call fcn.00427d37
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.00427e4d
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41b330
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41b33c
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.0041080e
cmp dword [esp + 0x60], ebx
je 0x41b359
push dword [esp + 0x60]
call fcn.004318d7
pop ecx
mov dword [esp + 0x60], ebx
lea edi, [esp + 0x44]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.0041c9d1
push ebx
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040464c
mov esi, dword [esp + 0x30]
jmp 0x41afb1
cmp dword [esp + 0x20], ebx
jbe 0x41b3b8
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 0x41b3c8
push dword [esp + 0x20]
jmp 0x41b3c3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41b3c8
push ebx
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 0xc800
call fcn.0043140a
pop ecx
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x34]
push eax
push dword [edi + 0xc]
mov eax, edi
call fcn.0041b8d4
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ebx
cmp eax, ebx
jne 0x41b42d
mov eax, dword [esp + 0x34]
cmp eax, ebx
jbe 0x41b501
mov ecx, 0xc800
cmp eax, ecx
jb 0x41b40d
mov eax, ecx
lea ecx, [esp + 0x2c]
push ecx
push eax
push dword [esp + 0x28]
mov eax, edi
push dword [edi + 0xc]
call fcn.0041b835
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41b4f7
cmp eax, 0x2ee2
je 0x41b449
cmp eax, 0x2efe
je 0x41b449
cmp eax, 0x2eff
je 0x41b449
cmp eax, 0x2f83
jne 0x41b479
cmp dword [esp + 0x28], 3
je 0x41b457
cmp dword [esp + 0x28], 4
jne 0x41b479
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x48]
push eax
push esi
push dword [esp + 0x30]
mov eax, edi
call fcn.0041b7bd
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41b3db
cmp eax, 0xe0000008
je 0x41b48b
push ebx
push eax
mov eax, dword [esp + 0x20]
call fcn.00427d37
push dword [esp + 0x20]
call fcn.00431415
pop ecx
cmp esi, ebx
je 0x41b4a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.00427e4d
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41b4c1
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41b4cd
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.0041080e
cmp dword [esp + 0x60], ebx
je 0x41b4ea
push dword [esp + 0x60]
call fcn.004318d7
pop ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
jmp 0x41b1aa
cmp dword [esp + 0x2c], ebx
jne 0x41b5dd
cmp dword [esp + 0x1c], ebx
jbe 0x41b646
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esp + 0x1c]
jae 0x41b646
cmp dword [esp + 0x28], 3
je 0x41b457
cmp dword [esp + 0x28], 4
je 0x41b457
mov eax, dword [esp + 0x18]
push ebx
push 0xe000000f
call fcn.00427d37
push dword [esp + 0x20]
call fcn.00431415
pop ecx
cmp esi, ebx
je 0x41b557
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.00427e4d
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41b578
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41b584
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.0041080e
cmp dword [esp + 0x60], ebx
je 0x41b5a1
push dword [esp + 0x60]
call fcn.004318d7
pop ecx
mov dword [esp + 0x60], ebx
lea edi, [esp + 0x44]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.0041c9d1
push ebx
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x3c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040464c
mov esi, 0xe000000f
jmp 0x41afb1
push ebx
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x34]
push dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b726
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41b60d
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.00427d6a
mov eax, esi
call fcn.00427d53
test al, al
je 0x41b3d7
push dword [esp + 0x20]
call fcn.00431415
pop ecx
cmp dword [esp + 0x4c], ebx
je 0x41b29b
push dword [esp + 0x4c]
jmp 0x41b295
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x41b657
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 0x41b6a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esp + 0x18], eax
push eax
mov eax, dword [esp + 0x20]
call fcn.00427d37
push dword [esp + 0x20]
call fcn.00431415
pop ecx
cmp dword [esp + 0x4c], ebx
je 0x41b4a0
push dword [esp + 0x4c]
call edi
jmp 0x41b4a0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41b6b9
mov eax, dword [ecx]
push ebx
push 1
call dword [eax + 0x10]
push dword [esp + 0x20]
call fcn.00431415
pop ecx
cmp dword [esp + 0x4c], ebx
je 0x41b6cf
push dword [esp + 0x4c]
call edi
lea esi, [esp + 0x60]
call fcn.00427e4d
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41b6f0
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41b6fc
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.0041080e
cmp dword [esp + 0x60], ebx
je 0x41b719
push dword [esp + 0x60]
call fcn.004318d7
pop ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
jmp 0x41b159
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x41b480