Function at 0x40a800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43724b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push esi
push edi
mov eax, dword [0x47700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40ab19
mov edx, 0x4579d0
mov ecx, ebx
call fcn.00401f50
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x90]
push 1
push 1
push 1
push 0x400
call fcn.00408260
push 1
push 1
push 1
push pe_nt_image_headers32
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.00408260
push 1
push 1
push 1
push pe_nt_image_headers32
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.00408260
mov byte [ebp - 4], 2
mov ecx, ebx
mov edi, dword [ebp - 0x64]
mov edx, edi
call fcn.00402100
mov ebx, eax
mov dword [ebp - 0x18], ebx
test edi, edi
jne 0x40a8b3
xor eax, eax
jmp 0x40a8ee
mov esi, dword [sym.imp.VCRUNTIME140.dll_strchr]
mov eax, edi
nop dword [eax + eax]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test eax, eax
je 0x40a8d6
push 0x2e
push eax
call esi
inc eax
add esp, 8
cmp eax, edi
jae 0x40a8c0
cmp ebx, edi
mov ebx, dword [ebp - 0x18]
jne 0x40a8f1
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a8e2
sub ecx, edx
lea eax, [ecx + edi]
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x48]
test ebx, ebx
je 0x40a933
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a900
sub ecx, edx
mov eax, 2
cmp ecx, eax
mov edx, 0x458e0c
cmovl eax, ecx
mov ecx, ebx
inc eax
push eax
call fcn.00401ca0
add esp, 4
test eax, eax
jne 0x40a933
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
je 0x40a958
push eax
jmp 0x40a939
cmp byte [ebx], 0
je 0x40a958
push ebx
call fcn.00401d80
push eax
push 0x5c
call fcn.00404240
push eax
push str._s_c_s._s
push esi
push edi
call fcn.004012c0
add esp, 0x1c
jmp 0x40a975
call fcn.00401d80
push eax
push 0x5c
call fcn.00404240
push eax
push str._s_c_s
push esi
push edi
call fcn.004012c0
add esp, 0x18
mov edx, 0x4579d0
mov ecx, edi
call fcn.00404110
mov esi, eax
test esi, esi
je 0x40a9c3
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp esi, eax
je 0x40a9c1
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp esi, eax
je 0x40a9c1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test eax, eax
je 0x40a9c1
push eax
push str.cimg::fclose__:_Error_code__d_returned_during_file_closing.
call fcn.00401b40
add esp, 8
test esi, esi
mov esi, dword [ebp - 0x48]
jne 0x40a8f7
test edi, edi
jne 0x40a9e5
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x1c], edi
jmp 0x40aa0d
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a9f0
push 0
sub esp, 8
sub ecx, edx
push 1
lea eax, [ecx + 1]
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.00408110
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 3
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40aa20
push 0
sub esp, 8
sub ecx, edx
push 1
lea eax, [ecx + 1]
push eax
push ebx
lea ecx, [ebp - 0x60]
call fcn.00408110
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00412450
lea ecx, [ebp - 0x60]
mov esi, dword [eax + 0x14]
call fcn.00412450
push esi
push dword [eax + 0x14]
call fcn.00405f40
mov esi, dword [ebp - 0x7c]
push eax
push str._s__c___s______s_
push dword [ebp - 0x90]
push esi
call fcn.004012c0
add esp, 0x18
cmp byte [ebp - 0x50], 0
jne 0x40aa86
push dword [ebp - 0x4c]
call fcn.0043575c
add esp, 4
mov byte [ebp - 4], 2
cmp byte [ebp - 0x20], 0
jne 0x40aa9b
push dword [ebp - 0x1c]
call fcn.0043575c
add esp, 4
xor edx, edx
mov ecx, esi
call fcn.00401be0
mov edx, 0x4579d0
mov ecx, edi
call fcn.00404110
test eax, eax
je 0x40ab5e
mov ecx, eax
call fcn.004020a0
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
push edi
call fcn.00408b60
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
cmp byte [ebp - 0x68], 0
jne 0x40aae5
push dword [ebp - 0x64]
call fcn.0043575c
add esp, 4
cmp byte [ebp - 0x38], 0
jne 0x40aaf4
push edi
call fcn.0043575c
add esp, 4
cmp byte [ebp - 0x80], 0
jne 0x40ab03
push esi
call fcn.0043575c
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00401920
cmp byte [ecx + 0x10], 0
mov edx, str.non_
push eax
mov eax, 0x4393e2
cmove eax, edx
push eax
push dword [ecx + 0x14]
lea eax, [ebp - 0x40]
push dword [ecx + 0xc]
push dword [ecx + 8]
push dword [ecx + 4]
push dword [ecx]
push str._instance__u__u__u__u__p__sshared___CImg__s_::load_gzip_external__:_Specified_filename_is__null_.
push eax
call fcn.00401780
add esp, 0x24
lea eax, [ebp - 0x40]
push 0x47569c
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov edx, 0x457fc0
mov ecx, ebx
call fcn.00401f50
mov ecx, eax
call fcn.004020a0
push ebx
call fcn.00401920
mov ebx, dword [ebp - 0x14]
mov ecx, str.non_
push eax
mov eax, 0x4393e2
cmp byte [ebx + 0x10], 0
cmove eax, ecx
push eax
push dword [ebx + 0x14]
lea eax, [ebp - 0x28]
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
push str._instance__u__u__u__u__p__sshared___CImg__s_::load_gzip_external__:_Failed_to_load_file__s_with_external_command_gunzip.
push eax
call fcn.00401780
add esp, 0x28
lea eax, [ebp - 0x28]
push 0x47569c
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3