Function at 0x41d605
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.0041d434
xor ebx, ebx
cmp eax, ebx
jne 0x41d67d
lea eax, [edi + 0x80]
cmp dword [eax], ebx
jbe 0x41d643
push 4
push eax
push 2
push dword [esp + 0x30]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [esp + 0x30]
push eax
lea esi, [edi + 0x30]
push esi
call fcn.0041ed00
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41d684
push eax
lea eax, [edi + 4]
call fcn.0042e7a6
mov esi, dword [esp + 0x14]
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 ecx, [edi + 0x28]
push ecx
lea ecx, [esp + 0x30]
push esi
lea eax, [edi + 0x2c]
push ecx
call fcn.00421762
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jne 0x41d6c6
mov eax, 0xe0000005
mov dword [edi + 0x20], eax
push eax
lea eax, [edi + 4]
call fcn.0042e7a6
mov eax, dword [esp + 0x2c]
mov edi, dword [edi + 0x20]
add eax, 0xfffffff0
call fcn.004046b1
mov esi, edi
jmp 0x41d666
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x18], eax
call fcn.00409baf
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x4512e4
lea eax, [esp + 0x14]
push eax
call fcn.00402192
lea esi, [edi + 4]
push 1
mov eax, esi
mov dword [esp + 0x20], esi
call fcn.0042e78e
mov dword [esp + 0x20], ebx
cmp byte [edi + 0x4c], bl
je 0x41d712
lea eax, [esp + 0x10]
call fcn.0040f230
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x2c]
call fcn.0041de8f
mov dword [esp + 0x14], eax
mov eax, esi
call fcn.0042e7ba
test al, al
je 0x41d753
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esp + 0x18]
call fcn.004046b1
mov esi, 0xe0000008
jmp 0x41d666
cmp dword [esp + 0x14], ebx
je 0x41d788
cmp dword [esp + 0x14], 0xe0000013
je 0x41d76e
push dword [esp + 0x14]
mov eax, esi
call fcn.0042e7a6
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esp + 0x18]
call fcn.004046b1
jmp 0x41d662
mov eax, dword [edi + 0x18]
mov ecx, dword [esi]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edi
cmp ecx, ebx
je 0x41d7ad
push dword [esp + 0x2c]
mov eax, dword [ecx]
push dword [esp + 0x2c]
call dword [eax + 8]
mov eax, esi
call fcn.0042e7ba
test al, al
je 0x41d7f2
lea edi, [esp + 0x48]
call fcn.0041f12d
push ebx
push dword [esp + 0x44]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esp + 0x18]
call fcn.004046b1
xor esi, esi
jmp 0x41d666
mov eax, dword [esp + 0x28]
cmp eax, ebx
jbe 0x41d80f
cmp eax, dword [esp + 0x20]
jne 0x41d80f
mov ecx, dword [esi]
cmp ecx, ebx
je 0x41d7b8
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
jmp 0x41d7b8
push ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0040a688
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41d851
push eax
mov eax, esi
call fcn.0042e7a6
lea edi, [esp + 0x48]
call fcn.0041f12d
push ebx
push dword [esp + 0x44]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x41d76e
xor eax, eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x58], 0xc
sbb ecx, ecx
neg ecx
inc ecx
inc ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x5c], eax
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 + 0x84], bl
je 0x41d8d1
cmp ecx, 2
jne 0x41d8d1
push str.S_1_1_0
lea eax, [esp + 0x68]
call fcn.0042e84f
push 0x451f48
lea eax, [esp + 0x68]
call fcn.0042e84f
lea esi, [esp + 0x64]
call fcn.0042e971
mov dword [esp + 0x5c], eax
push ebx
push 0x80
push dword [esp + 0x3c]
neg eax
sbb eax, eax
lea ecx, [esp + 0x64]
and eax, ecx
push eax
push ebx
push 0xc0000000
lea esi, [esp + 0x28]
call fcn.004020e5
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x50], eax
cmp eax, 0xffffffff
jne 0x41da4d
mov eax, dword [esp + 0x1c]
call fcn.0042e7ba
test al, al
je 0x41d99d
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x64]
call fcn.0042e8f6
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x84], ebx
je 0x41d943
push dword [esp + 0x84]
call esi
cmp dword [esp + 0x80], ebx
je 0x41d955
push dword [esp + 0x80]
call esi
lea esi, [esp + 0x70]
call fcn.00410394
cmp dword [esp + 0x64], ebx
je 0x41d972
push dword [esp + 0x64]
call fcn.00430777
pop ecx
mov dword [esp + 0x64], ebx
lea edi, [esp + 0x48]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.0041f12d
push ebx
push dword [esp + 0x44]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x41d734
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x20]
call fcn.0042e7a6
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x64]
call fcn.0042e8f6
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x84], ebx
je 0x41d9da
push dword [esp + 0x84]
call esi
cmp dword [esp + 0x80], ebx
je 0x41d9ec
push dword [esp + 0x80]
call esi
lea esi, [esp + 0x70]
call fcn.00410394
cmp dword [esp + 0x64], ebx
je 0x41da09
push dword [esp + 0x64]
call fcn.00430777
pop ecx
mov dword [esp + 0x64], ebx
lea edi, [esp + 0x48]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.0041f12d
push ebx
push dword [esp + 0x44]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esp + 0x18]
call fcn.004046b1
mov esi, dword [esp + 0x34]
jmp 0x41d666
cmp dword [esp + 0x20], ebx
jbe 0x41da71
push 2
push ebx
push ebx
push dword [esp + 0x5c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41da81
push dword [esp + 0x20]
jmp 0x41da7c
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41da81
push ebx
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0xc800
call fcn.004302aa
pop ecx
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x38]
push eax
push dword [edi + 0x14]
mov eax, edi
call fcn.0041e031
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], ebx
cmp eax, ebx
jne 0x41dae6
mov eax, dword [esp + 0x38]
cmp eax, ebx
jbe 0x41dbbf
mov ecx, 0xc800
cmp eax, ecx
jb 0x41dac6
mov eax, ecx
lea ecx, [esp + 0x34]
push ecx
push eax
push dword [esp + 0x28]
mov eax, edi
push dword [edi + 0x14]
call fcn.0041df92
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41dbb5
cmp eax, 0x2ee2
je 0x41db02
cmp eax, 0x2efe
je 0x41db02
cmp eax, 0x2eff
je 0x41db02
cmp eax, 0x2f83
jne 0x41db32
cmp dword [esp + 0x30], 3
je 0x41db10
cmp dword [esp + 0x30], 4
jne 0x41db32
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x4c]
push eax
push esi
push dword [esp + 0x30]
mov eax, edi
call fcn.0041df16
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41da94
cmp eax, 0xe0000008
je 0x41db43
push eax
mov eax, dword [esp + 0x20]
call fcn.0042e7a6
push dword [esp + 0x20]
call fcn.004302b5
pop ecx
cmp esi, ebx
je 0x41db58
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x64]
call fcn.0042e8f6
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x84], ebx
je 0x41db79
push dword [esp + 0x84]
call esi
cmp dword [esp + 0x80], ebx
je 0x41db8b
push dword [esp + 0x80]
call esi
lea esi, [esp + 0x70]
call fcn.00410394
cmp dword [esp + 0x64], ebx
je 0x41dba8
push dword [esp + 0x64]
call fcn.00430777
pop ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
jmp 0x41d82e
cmp dword [esp + 0x34], ebx
jne 0x41dca9
cmp dword [esp + 0x28], ebx
jbe 0x41dd11
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esp + 0x28]
jae 0x41dd11
cmp dword [esp + 0x30], 3
je 0x41db10
cmp dword [esp + 0x30], 4
je 0x41db10
mov eax, dword [esp + 0x1c]
push 0xe000000f
call fcn.0042e7a6
push dword [esp + 0x20]
call fcn.004302b5
pop ecx
cmp esi, ebx
je 0x41dc14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x64]
call fcn.0042e8f6
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x84], ebx
je 0x41dc35
push dword [esp + 0x84]
call esi
cmp dword [esp + 0x80], ebx
je 0x41dc47
push dword [esp + 0x80]
call esi
lea esi, [esp + 0x70]
call fcn.00410394
cmp dword [esp + 0x64], ebx
je 0x41dc64
push dword [esp + 0x64]
call fcn.00430777
pop ecx
mov dword [esp + 0x64], ebx
lea edi, [esp + 0x48]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.0041f12d
push ebx
push dword [esp + 0x44]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esp + 0x18]
call fcn.004046b1
mov esi, 0xe000000f
jmp 0x41d666
push ebx
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ddcc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41dcd9
push dword [esp + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [esp + 0x1c]
lea eax, [edi + 0x44]
push eax
call fcn.0042e7d1
mov eax, esi
call fcn.0042e7ba
test al, al
je 0x41da90
push dword [esp + 0x20]
call fcn.004302b5
pop ecx
cmp dword [esp + 0x50], ebx
je 0x41dd6f
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41dd6f
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x50], ebx
je 0x41dd27
push dword [esp + 0x50]
call esi
mov dword [esp + 0x50], ebx
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x2c]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41dd50
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esp + 0x20]
call fcn.004302b5
pop ecx
cmp dword [esp + 0x50], ebx
je 0x41dd6f
push dword [esp + 0x50]
call esi
lea esi, [esp + 0x64]
call fcn.0042e8f6
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x84], ebx
je 0x41dd90
push dword [esp + 0x84]
call esi
cmp dword [esp + 0x80], ebx
je 0x41dda2
push dword [esp + 0x80]
call esi
lea esi, [esp + 0x70]
call fcn.00410394
cmp dword [esp + 0x64], ebx
je 0x41ddbf
push dword [esp + 0x64]
call fcn.00430777
pop ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
jmp 0x41d7b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x20], eax
push eax
mov eax, dword [esp + 0x20]
call fcn.0042e7a6
mov eax, dword [edi + 0x20]
push dword [esp + 0x20]
mov dword [esp + 0x34], eax
call fcn.004302b5
pop ecx
cmp esi, ebx
je 0x41ddfb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x64]
call fcn.0042e8f6
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x84], ebx
je 0x41de1c
push dword [esp + 0x84]
call esi
cmp dword [esp + 0x80], ebx
je 0x41de2e
push dword [esp + 0x80]
call esi
lea esi, [esp + 0x70]
call fcn.00410394
cmp dword [esp + 0x64], ebx
je 0x41de4b
push dword [esp + 0x64]
call fcn.00430777
pop ecx
mov dword [esp + 0x64], ebx
lea edi, [esp + 0x48]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.0041f12d
push ebx
push dword [esp + 0x44]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push dword [esp + 0x40]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esp + 0x18]
call fcn.004046b1
mov esi, dword [esp + 0x30]
jmp 0x41d666