Function at 0x41dc5b
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 + 0x14], 0
push ebx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
mov ebx, edi
call fcn.0041da8a
xor ebx, ebx
cmp eax, ebx
jne 0x41dcd3
lea eax, [edi + 0x80]
cmp dword [eax], ebx
jbe 0x41dc99
push 4
push eax
push 2
push dword [esp + 0x2c]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [esp + 0x2c]
push eax
lea esi, [edi + 0x30]
push esi
call fcn.0041f332
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x41dcda
push eax
lea eax, [edi + 4]
call fcn.0042ec28
mov esi, dword [esp + 0x10]
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 + 0x2c]
push esi
lea eax, [edi + 0x2c]
push ecx
call fcn.004220a7
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jne 0x41dd1c
mov eax, 0xe0000005
mov dword [edi + 0x20], eax
push eax
lea eax, [edi + 4]
call fcn.0042ec28
mov eax, dword [esp + 0x28]
mov edi, dword [edi + 0x20]
add eax, 0xfffffff0
call fcn.0040469f
mov esi, edi
jmp 0x41dcbc
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x14], eax
call fcn.00409cf0
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x4528b0
lea eax, [esp + 0x10]
push eax
call fcn.00402171
lea esi, [edi + 4]
push 1
mov eax, esi
mov dword [esp + 0x1c], esi
call fcn.0042ec10
mov dword [esp + 0x1c], ebx
cmp byte [edi + 0x4c], bl
je 0x41dd68
lea eax, [esp + 0xc]
call fcn.0040f512
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x28]
call fcn.0041e4c1
mov dword [esp + 0x10], eax
mov eax, esi
call fcn.0042ec3c
test al, al
je 0x41dda9
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [esp + 0x14]
call fcn.0040469f
mov esi, 0xe0000008
jmp 0x41dcbc
cmp dword [esp + 0x10], ebx
je 0x41ddde
cmp dword [esp + 0x10], 0xe0000013
je 0x41ddc4
push dword [esp + 0x10]
mov eax, esi
call fcn.0042ec28
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [esp + 0x14]
call fcn.0040469f
jmp 0x41dcb8
mov eax, dword [edi + 0x18]
mov ecx, dword [esi]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edi
cmp ecx, ebx
je 0x41de03
push dword [esp + 0x28]
mov eax, dword [ecx]
push dword [esp + 0x28]
call dword [eax + 8]
mov eax, esi
call fcn.0042ec3c
test al, al
je 0x41de48
lea edi, [esp + 0x44]
call fcn.0041f75b
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 + 0xc]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [esp + 0x14]
call fcn.0040469f
xor esi, esi
jmp 0x41dcbc
mov eax, dword [esp + 0x24]
cmp eax, ebx
jbe 0x41de65
cmp eax, dword [esp + 0x1c]
jne 0x41de65
mov ecx, dword [esi]
cmp ecx, ebx
je 0x41de0e
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
jmp 0x41de0e
push ebx
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.0040a7aa
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x41dea7
push eax
mov eax, esi
call fcn.0042ec28
lea edi, [esp + 0x44]
call fcn.0041f75b
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 0x41ddc4
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 + 0x30], 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 + 0x84], bl
je 0x41df2b
cmp ecx, 2
jne 0x41df2b
push str.S_1_1_0
lea eax, [esp + 0x64]
call fcn.0042ecd1
push 0x453510
lea eax, [esp + 0x64]
call fcn.0042ecd1
lea esi, [esp + 0x60]
call fcn.0042edfd
mov dword [esp + 0x58], eax
push ebx
push 0x80
push dword [esp + 0x38]
neg eax
sbb eax, eax
lea ecx, [esp + 0x60]
and eax, ecx
push eax
push ebx
push 0xc0000000
lea esi, [esp + 0x24]
call fcn.004020c4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x4c], eax
cmp eax, 0xffffffff
jne 0x41e097
mov eax, dword [esp + 0x18]
call fcn.0042ec3c
test al, al
je 0x41dfed
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.0042ed82
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41df99
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41dfa5
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.0040983d
cmp dword [esp + 0x60], ebx
je 0x41dfc2
push dword [esp + 0x60]
call fcn.00430c47
pop ecx
mov dword [esp + 0x60], ebx
lea edi, [esp + 0x44]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.0041f75b
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 0x41dd8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x30], eax
push eax
mov eax, dword [esp + 0x1c]
call fcn.0042ec28
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.0042ed82
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41e02a
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41e036
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.0040983d
cmp dword [esp + 0x60], ebx
je 0x41e053
push dword [esp + 0x60]
call fcn.00430c47
pop ecx
mov dword [esp + 0x60], ebx
lea edi, [esp + 0x44]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.0041f75b
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 + 0xc]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [esp + 0x14]
call fcn.0040469f
mov esi, dword [esp + 0x30]
jmp 0x41dcbc
cmp dword [esp + 0x1c], ebx
jbe 0x41e0bb
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 0x41e0cb
push dword [esp + 0x1c]
jmp 0x41e0c6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41e0cb
push ebx
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0xc800
call fcn.0043077a
pop ecx
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x34]
push eax
push dword [edi + 0x14]
mov eax, edi
call fcn.0041e663
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], ebx
cmp eax, ebx
jne 0x41e130
mov eax, dword [esp + 0x34]
cmp eax, ebx
jbe 0x41e203
mov ecx, 0xc800
cmp eax, ecx
jb 0x41e110
mov eax, ecx
lea ecx, [esp + 0x30]
push ecx
push eax
push dword [esp + 0x24]
mov eax, edi
push dword [edi + 0x14]
call fcn.0041e5c4
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x41e1f9
cmp eax, 0x2ee2
je 0x41e14c
cmp eax, 0x2efe
je 0x41e14c
cmp eax, 0x2eff
je 0x41e14c
cmp eax, 0x2f83
jne 0x41e17c
cmp dword [esp + 0x2c], 3
je 0x41e15a
cmp dword [esp + 0x2c], 4
jne 0x41e17c
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x48]
push eax
push esi
push dword [esp + 0x2c]
mov eax, edi
call fcn.0041e548
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x41e0de
cmp eax, 0xe0000008
je 0x41e18d
push eax
mov eax, dword [esp + 0x1c]
call fcn.0042ec28
push dword [esp + 0x1c]
call fcn.00430785
pop ecx
cmp esi, ebx
je 0x41e1a2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.0042ed82
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41e1c3
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41e1cf
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.0040983d
cmp dword [esp + 0x60], ebx
je 0x41e1ec
push dword [esp + 0x60]
call fcn.00430c47
pop ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
jmp 0x41de84
cmp dword [esp + 0x30], ebx
jne 0x41e2e7
cmp dword [esp + 0x24], ebx
jbe 0x41e34f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esp + 0x24]
jae 0x41e34f
cmp dword [esp + 0x2c], 3
je 0x41e15a
cmp dword [esp + 0x2c], 4
je 0x41e15a
mov eax, dword [esp + 0x18]
push 0xe000000f
call fcn.0042ec28
push dword [esp + 0x1c]
call fcn.00430785
pop ecx
cmp esi, ebx
je 0x41e258
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.0042ed82
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41e279
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41e285
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.0040983d
cmp dword [esp + 0x60], ebx
je 0x41e2a2
push dword [esp + 0x60]
call fcn.00430c47
pop ecx
mov dword [esp + 0x60], ebx
lea edi, [esp + 0x44]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.0041f75b
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 + 0xc]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [esp + 0x14]
call fcn.0040469f
mov esi, 0xe000000f
jmp 0x41dcbc
push ebx
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x38]
push dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e404
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41e317
push dword [esp + 0x38]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [esp + 0x18]
lea eax, [edi + 0x44]
push eax
call fcn.0042ec53
mov eax, esi
call fcn.0042ec3c
test al, al
je 0x41e0da
push dword [esp + 0x1c]
call fcn.00430785
pop ecx
cmp dword [esp + 0x4c], ebx
je 0x41e3ad
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41e3ad
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x4c], ebx
je 0x41e365
push dword [esp + 0x4c]
call esi
mov dword [esp + 0x4c], ebx
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x28]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41e38e
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.00430785
pop ecx
cmp dword [esp + 0x4c], ebx
je 0x41e3ad
push dword [esp + 0x4c]
call esi
lea esi, [esp + 0x60]
call fcn.0042ed82
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41e3ce
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41e3da
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.0040983d
cmp dword [esp + 0x60], ebx
je 0x41e3f7
push dword [esp + 0x60]
call fcn.00430c47
pop ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
jmp 0x41de0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x20], eax
push eax
mov eax, dword [esp + 0x1c]
call fcn.0042ec28
mov eax, dword [edi + 0x20]
push dword [esp + 0x1c]
mov dword [esp + 0x30], eax
call fcn.00430785
pop ecx
cmp esi, ebx
je 0x41e433
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.0042ed82
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41e454
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41e460
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.0040983d
cmp dword [esp + 0x60], ebx
je 0x41e47d
push dword [esp + 0x60]
call fcn.00430c47
pop ecx
mov dword [esp + 0x60], ebx
lea edi, [esp + 0x44]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.0041f75b
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 + 0xc]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [esp + 0x14]
call fcn.0040469f
mov esi, dword [esp + 0x2c]
jmp 0x41dcbc