Function at 0x41d5f9
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.0041d428
xor ebx, ebx
cmp eax, ebx
jne 0x41d671
lea eax, [edi + 0x80]
cmp dword [eax], ebx
jbe 0x41d637
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.0041ecf4
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41d678
push eax
lea eax, [edi + 4]
call fcn.0042e797
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.00421756
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jne 0x41d6ba
mov eax, 0xe0000005
mov dword [edi + 0x20], eax
push eax
lea eax, [edi + 4]
call fcn.0042e797
mov eax, dword [esp + 0x2c]
mov edi, dword [edi + 0x20]
add eax, 0xfffffff0
call fcn.004046b1
mov esi, edi
jmp 0x41d65a
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.0042e77f
mov dword [esp + 0x20], ebx
cmp byte [edi + 0x4c], bl
je 0x41d706
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.0041de83
mov dword [esp + 0x14], eax
mov eax, esi
call fcn.0042e7ab
test al, al
je 0x41d747
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esp + 0x18]
call fcn.004046b1
mov esi, 0xe0000008
jmp 0x41d65a
cmp dword [esp + 0x14], ebx
je 0x41d77c
cmp dword [esp + 0x14], 0xe0000013
je 0x41d762
push dword [esp + 0x14]
mov eax, esi
call fcn.0042e797
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [esp + 0x18]
call fcn.004046b1
jmp 0x41d656
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 0x41d7a1
push dword [esp + 0x2c]
mov eax, dword [ecx]
push dword [esp + 0x2c]
call dword [eax + 8]
mov eax, esi
call fcn.0042e7ab
test al, al
je 0x41d7e6
lea edi, [esp + 0x48]
call fcn.0041f121
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 0x41d65a
mov eax, dword [esp + 0x28]
cmp eax, ebx
jbe 0x41d803
cmp eax, dword [esp + 0x20]
jne 0x41d803
mov ecx, dword [esi]
cmp ecx, ebx
je 0x41d7ac
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
jmp 0x41d7ac
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 0x41d845
push eax
mov eax, esi
call fcn.0042e797
lea edi, [esp + 0x48]
call fcn.0041f121
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 0x41d762
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 0x41d8c5
cmp ecx, 2
jne 0x41d8c5
push str.S_1_1_0
lea eax, [esp + 0x68]
call fcn.0042e840
push 0x451f48
lea eax, [esp + 0x68]
call fcn.0042e840
lea esi, [esp + 0x64]
call fcn.0042e962
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 0x41da41
mov eax, dword [esp + 0x1c]
call fcn.0042e7ab
test al, al
je 0x41d991
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x64]
call fcn.0042e8e7
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x84], ebx
je 0x41d937
push dword [esp + 0x84]
call esi
cmp dword [esp + 0x80], ebx
je 0x41d949
push dword [esp + 0x80]
call esi
lea esi, [esp + 0x70]
call fcn.00410383
cmp dword [esp + 0x64], ebx
je 0x41d966
push dword [esp + 0x64]
call fcn.00430767
pop ecx
mov dword [esp + 0x64], ebx
lea edi, [esp + 0x48]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.0041f121
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 0x41d728
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x20]
call fcn.0042e797
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x64]
call fcn.0042e8e7
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x84], ebx
je 0x41d9ce
push dword [esp + 0x84]
call esi
cmp dword [esp + 0x80], ebx
je 0x41d9e0
push dword [esp + 0x80]
call esi
lea esi, [esp + 0x70]
call fcn.00410383
cmp dword [esp + 0x64], ebx
je 0x41d9fd
push dword [esp + 0x64]
call fcn.00430767
pop ecx
mov dword [esp + 0x64], ebx
lea edi, [esp + 0x48]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.0041f121
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 0x41d65a
cmp dword [esp + 0x20], ebx
jbe 0x41da65
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 0x41da75
push dword [esp + 0x20]
jmp 0x41da70
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41da75
push ebx
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0xc800
call fcn.0043029a
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.0041e025
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], ebx
cmp eax, ebx
jne 0x41dada
mov eax, dword [esp + 0x38]
cmp eax, ebx
jbe 0x41dbb3
mov ecx, 0xc800
cmp eax, ecx
jb 0x41daba
mov eax, ecx
lea ecx, [esp + 0x34]
push ecx
push eax
push dword [esp + 0x28]
mov eax, edi
push dword [edi + 0x14]
call fcn.0041df86
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41dba9
cmp eax, 0x2ee2
je 0x41daf6
cmp eax, 0x2efe
je 0x41daf6
cmp eax, 0x2eff
je 0x41daf6
cmp eax, 0x2f83
jne 0x41db26
cmp dword [esp + 0x30], 3
je 0x41db04
cmp dword [esp + 0x30], 4
jne 0x41db26
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x4c]
push eax
push esi
push dword [esp + 0x30]
mov eax, edi
call fcn.0041df0a
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41da88
cmp eax, 0xe0000008
je 0x41db37
push eax
mov eax, dword [esp + 0x20]
call fcn.0042e797
push dword [esp + 0x20]
call fcn.004302a5
pop ecx
cmp esi, ebx
je 0x41db4c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x64]
call fcn.0042e8e7
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x84], ebx
je 0x41db6d
push dword [esp + 0x84]
call esi
cmp dword [esp + 0x80], ebx
je 0x41db7f
push dword [esp + 0x80]
call esi
lea esi, [esp + 0x70]
call fcn.00410383
cmp dword [esp + 0x64], ebx
je 0x41db9c
push dword [esp + 0x64]
call fcn.00430767
pop ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
jmp 0x41d822
cmp dword [esp + 0x34], ebx
jne 0x41dc9d
cmp dword [esp + 0x28], ebx
jbe 0x41dd05
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esp + 0x28]
jae 0x41dd05
cmp dword [esp + 0x30], 3
je 0x41db04
cmp dword [esp + 0x30], 4
je 0x41db04
mov eax, dword [esp + 0x1c]
push 0xe000000f
call fcn.0042e797
push dword [esp + 0x20]
call fcn.004302a5
pop ecx
cmp esi, ebx
je 0x41dc08
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x64]
call fcn.0042e8e7
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x84], ebx
je 0x41dc29
push dword [esp + 0x84]
call esi
cmp dword [esp + 0x80], ebx
je 0x41dc3b
push dword [esp + 0x80]
call esi
lea esi, [esp + 0x70]
call fcn.00410383
cmp dword [esp + 0x64], ebx
je 0x41dc58
push dword [esp + 0x64]
call fcn.00430767
pop ecx
mov dword [esp + 0x64], ebx
lea edi, [esp + 0x48]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.0041f121
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 0x41d65a
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 0x41ddc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41dccd
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.0042e7c2
mov eax, esi
call fcn.0042e7ab
test al, al
je 0x41da84
push dword [esp + 0x20]
call fcn.004302a5
pop ecx
cmp dword [esp + 0x50], ebx
je 0x41dd63
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41dd63
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x50], ebx
je 0x41dd1b
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 0x41dd44
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.004302a5
pop ecx
cmp dword [esp + 0x50], ebx
je 0x41dd63
push dword [esp + 0x50]
call esi
lea esi, [esp + 0x64]
call fcn.0042e8e7
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x84], ebx
je 0x41dd84
push dword [esp + 0x84]
call esi
cmp dword [esp + 0x80], ebx
je 0x41dd96
push dword [esp + 0x80]
call esi
lea esi, [esp + 0x70]
call fcn.00410383
cmp dword [esp + 0x64], ebx
je 0x41ddb3
push dword [esp + 0x64]
call fcn.00430767
pop ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
jmp 0x41d7ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x20], eax
push eax
mov eax, dword [esp + 0x20]
call fcn.0042e797
mov eax, dword [edi + 0x20]
push dword [esp + 0x20]
mov dword [esp + 0x34], eax
call fcn.004302a5
pop ecx
cmp esi, ebx
je 0x41ddef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x64]
call fcn.0042e8e7
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x84], ebx
je 0x41de10
push dword [esp + 0x84]
call esi
cmp dword [esp + 0x80], ebx
je 0x41de22
push dword [esp + 0x80]
call esi
lea esi, [esp + 0x70]
call fcn.00410383
cmp dword [esp + 0x64], ebx
je 0x41de3f
push dword [esp + 0x64]
call fcn.00430767
pop ecx
mov dword [esp + 0x64], ebx
lea edi, [esp + 0x48]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.0041f121
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 0x41d65a