Function at 0x41b0a2
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.0041aef5
xor ebx, ebx
cmp eax, ebx
jne 0x41b112
lea eax, [edi + 0x70]
cmp dword [eax], ebx
jbe 0x41b0dd
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.0041c761
mov esi, eax
cmp esi, ebx
je 0x41b119
push ebx
push esi
lea eax, [edi + 4]
call fcn.004280e5
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.0040a8de
test al, al
jne 0x41b132
mov esi, 0xe0000005
jmp 0x41b0f1
mov eax, dword [esi]
sub eax, 0x10
call fcn.00409cf1
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x453914
lea eax, [esp + 0x14]
push eax
call fcn.00402120
mov dword [esp + 0x20], ebx
cmp byte [edi + 0x3c], bl
je 0x41b168
lea eax, [esp + 0x10]
call fcn.0040f7b7
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
call fcn.0041b882
lea esi, [edi + 4]
mov dword [esp + 0x14], eax
mov eax, esi
mov dword [esp + 0x18], esi
call fcn.00428101
test al, al
je 0x41b1ab
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00404644
mov esi, 0xe0000008
jmp 0x41b0fb
cmp dword [esp + 0x14], ebx
je 0x41b1dc
cmp dword [esp + 0x14], 0xe0000013
je 0x41b1c7
push ebx
push dword [esp + 0x18]
mov eax, esi
call fcn.004280e5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00404644
mov esi, dword [esp + 0x14]
jmp 0x41b0fb
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 0x41b240
cmp dword [esp + 0x1c], ebx
je 0x41b240
cmp eax, dword [esp + 0x1c]
je 0x41b240
mov eax, dword [esp + 0x18]
push ebx
mov esi, 0xe0000023
push esi
call fcn.004280e5
lea edi, [esp + 0x44]
call fcn.0041cca2
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.00404644
jmp 0x41b0fb
mov ecx, dword [esi]
cmp ecx, ebx
je 0x41b257
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.00428101
test al, al
je 0x41b285
lea edi, [esp + 0x44]
call fcn.0041cca2
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 0x41b195
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jbe 0x41b2d2
cmp eax, dword [esp + 0x20]
jne 0x41b2d2
mov ecx, dword [esi]
cmp ecx, ebx
je 0x41b2a1
mov eax, dword [ecx]
push ebx
push 1
call dword [eax + 0x10]
lea edi, [esp + 0x44]
call fcn.0041cca2
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.00404644
xor esi, esi
jmp 0x41b0fb
push ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0040a71b
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41b315
push ebx
push eax
mov eax, esi
call fcn.004280e5
lea edi, [esp + 0x44]
call fcn.0041cca2
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 0x41b1c7
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 0x41b396
cmp ecx, 2
jne 0x41b396
push str.S_1_1_0
lea eax, [esp + 0x64]
call fcn.0042814a
push 0x454410
lea eax, [esp + 0x64]
call fcn.0042814a
lea esi, [esp + 0x60]
call fcn.00428276
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 0x41b4dc
mov eax, dword [esp + 0x18]
call fcn.00428101
test al, al
je 0x41b43a
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.004281fb
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41b404
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41b410
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.004285dd
cmp dword [esp + 0x60], ebx
je 0x41b42d
push dword [esp + 0x60]
call fcn.00431d77
pop ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
jmp 0x41b262
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x20]
call fcn.004280e5
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.004281fb
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41b478
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41b484
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.004285dd
cmp dword [esp + 0x60], ebx
je 0x41b4a1
push dword [esp + 0x60]
call fcn.00431d77
pop ecx
mov dword [esp + 0x60], ebx
lea edi, [esp + 0x44]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.0041cca2
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.00404644
mov esi, dword [esp + 0x30]
jmp 0x41b0fb
cmp dword [esp + 0x20], ebx
jbe 0x41b500
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 0x41b510
push dword [esp + 0x20]
jmp 0x41b50b
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41b510
push ebx
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 0xc800
call fcn.004318aa
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.0041ba23
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ebx
cmp eax, ebx
jne 0x41b575
mov eax, dword [esp + 0x34]
cmp eax, ebx
jbe 0x41b649
mov ecx, 0xc800
cmp eax, ecx
jb 0x41b555
mov eax, ecx
lea ecx, [esp + 0x2c]
push ecx
push eax
push dword [esp + 0x28]
mov eax, edi
push dword [edi + 0xc]
call fcn.0041b984
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41b63f
cmp eax, 0x2ee2
je 0x41b591
cmp eax, 0x2efe
je 0x41b591
cmp eax, 0x2eff
je 0x41b591
cmp eax, 0x2f83
jne 0x41b5c1
cmp dword [esp + 0x28], 3
je 0x41b59f
cmp dword [esp + 0x28], 4
jne 0x41b5c1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x48]
push eax
push esi
push dword [esp + 0x30]
mov eax, edi
call fcn.0041b908
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x41b523
cmp eax, 0xe0000008
je 0x41b5d3
push ebx
push eax
mov eax, dword [esp + 0x20]
call fcn.004280e5
push dword [esp + 0x20]
call fcn.004318b5
pop ecx
cmp esi, ebx
je 0x41b5e8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.004281fb
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41b609
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41b615
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.004285dd
cmp dword [esp + 0x60], ebx
je 0x41b632
push dword [esp + 0x60]
call fcn.00431d77
pop ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
jmp 0x41b2f2
cmp dword [esp + 0x2c], ebx
jne 0x41b725
cmp dword [esp + 0x1c], ebx
jbe 0x41b78e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esp + 0x1c]
jae 0x41b78e
cmp dword [esp + 0x28], 3
je 0x41b59f
cmp dword [esp + 0x28], 4
je 0x41b59f
mov eax, dword [esp + 0x18]
push ebx
push 0xe000000f
call fcn.004280e5
push dword [esp + 0x20]
call fcn.004318b5
pop ecx
cmp esi, ebx
je 0x41b69f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x60]
call fcn.004281fb
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41b6c0
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41b6cc
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.004285dd
cmp dword [esp + 0x60], ebx
je 0x41b6e9
push dword [esp + 0x60]
call fcn.00431d77
pop ecx
mov dword [esp + 0x60], ebx
lea edi, [esp + 0x44]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.0041cca2
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.00404644
mov esi, 0xe000000f
jmp 0x41b0fb
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 0x41b873
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41b755
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.00428118
mov eax, esi
call fcn.00428101
test al, al
je 0x41b51f
push dword [esp + 0x20]
call fcn.004318b5
pop ecx
cmp dword [esp + 0x4c], ebx
je 0x41b3e3
push dword [esp + 0x4c]
jmp 0x41b3dd
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x4c], ebx
je 0x41b7a4
push dword [esp + 0x4c]
call esi
mov dword [esp + 0x4c], ebx
mov edi, dword [esp + 0x30]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x41b7f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esp + 0x18], eax
push eax
mov eax, dword [esp + 0x20]
call fcn.004280e5
push dword [esp + 0x20]
call fcn.004318b5
pop ecx
cmp dword [esp + 0x4c], ebx
je 0x41b5e8
push dword [esp + 0x4c]
call esi
jmp 0x41b5e8
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x41b806
mov eax, dword [ecx]
push ebx
push 1
call dword [eax + 0x10]
push dword [esp + 0x20]
call fcn.004318b5
pop ecx
cmp dword [esp + 0x4c], ebx
je 0x41b81c
push dword [esp + 0x4c]
call esi
lea esi, [esp + 0x60]
call fcn.004281fb
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x80], ebx
je 0x41b83d
push dword [esp + 0x80]
call esi
cmp dword [esp + 0x7c], ebx
je 0x41b849
push dword [esp + 0x7c]
call esi
lea esi, [esp + 0x6c]
call fcn.004285dd
cmp dword [esp + 0x60], ebx
je 0x41b866
push dword [esp + 0x60]
call fcn.00431d77
pop ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
jmp 0x41b2a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x41b5c8