Function at 0x410290
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x436008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
mov ecx, dword [ebp + 0xc]
push edi
push 0x2f
push eax
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], ecx
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4102f3
push 0x43f288
call fcn.00404d10
add esp, 4
lea eax, [edi - 2]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
inc edi
lea eax, [ebp - 0x118]
push edi
test esi, esi
je 0x410310
push esi
push 0x43f2bc
push eax
call fcn.00403e30
add esp, 0x10
jmp 0x41031e
push 0x43f2c4
push eax
call fcn.00403e30
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x218]
push str._s.lock
push eax
call fcn.00403e30
add esp, 0xc
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x218]
call fcn.00411510
test eax, eax
je 0x410362
lea eax, [ebp - 0x218]
push eax
push str.WARNING:_Could_not_lock_file__s_n
call fcn.00404d10
add esp, 8
xor ebx, ebx
lea eax, [ebp - 0x118]
xorps xmm0, xmm0
mov byte [ebp - 0x18], bl
push 0x43f2f4
push eax
movups xmmword [ebp - 0x17], xmm0
mov word [ebp - 7], bx
mov byte [ebp - 5], bl
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 0x220], eax
test eax, eax
je 0x410429
mov edx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x18]
lea esi, [ebx + 0x10]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4103c7
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4103a4
mov esi, dword [ebp - 0x220]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
jmp 0x41042e
lea eax, [ebp - 0x118]
push eax
push str.Verifying__s..._n
call fcn.00404cb0
mov esi, dword [ebp - 0x220]
add esp, 8
mov edx, dword [ebp - 0x21c]
mov ecx, esi
call fcn.004101b0
test eax, eax
je 0x41040b
push 0x43f30c
call fcn.00404cb0
add esp, 4
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
jmp 0x41042e
push str.Checksum_does_not_match._n
call fcn.00404cb0
add esp, 4
mov ebx, 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
jmp 0x41042e
mov ebx, 1
xor esi, esi
test ebx, ebx
je 0x4104b6
mov ebx, dword [ebp - 0x224]
push 0xa
push str.protected:
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x410468
push edi
push str.ERROR:_Cant_download__s_because_it_needs_a_purchase._n
call fcn.00404d10
add esp, 8
mov esi, 0xfffffffd
jmp 0x4104ce
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
push ebx
push str.Downloading_firmware___s__n
call fcn.00404cb0
push 1
lea edx, [ebp - 0x118]
mov ecx, ebx
call fcn.004062b0
mov ebx, dword [ebp - 0x21c]
lea edx, [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
mov edi, 0x10
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x410504
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4104a5
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov ecx, dword [ebp - 0x228]
add esp, 4
mov dword [ecx], eax
lea ecx, [ebp - 0x240]
call fcn.004115b0
test eax, eax
je 0x4104f1
lea eax, [ebp - 0x218]
push eax
push str.WARNING:_Could_not_unlock_file__s_n
call fcn.00404d10
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x118]
push eax
push str._nVerifying__s..._n
call fcn.00404cb0
lea eax, [ebp - 0x118]
push 0x43f3b4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x410586
mov edx, ebx
mov ecx, edi
call fcn.004101b0
test eax, eax
je 0x410549
push str.Checksum_matches._n
call fcn.00404cb0
jmp 0x410558
push str.ERROR:_File_download_failed__checksum_mismatch_._n
call fcn.00404d10
mov esi, 0xfffffffc
add esp, 4
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test esi, esi
jns 0x41057b
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
test esi, esi
jne 0x4104ce
jmp 0x4104b6
lea eax, [ebp - 0x118]
push eax
push str.ERROR:_Cant_open__s_for_checksum_verification_n
call fcn.00404d10
add esp, 8
mov esi, 0xfffffffb
jmp 0x4104ce