Function at 0x4579ee
Capabilities:
Delete file

Disassembly:
push 0x6c
mov eax, 0x477cf0
call fcn.00476acd
xor eax, eax
mov bl, al
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x65], bl
cmp dword [0x4943d0], eax
je 0x457d96
push 0x47f3a0
lea ecx, [ebp - 0x28]
call fcn.0044a94c
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
inc eax
mov byte [ebp - 4], al
mov ebx, dword [0x47f880]
test ebx, ebx
je 0x457d83
cmp byte [ebx + 0x10], 0
je 0x457d77
push ecx
push dword [0x47f3b0]
lea ecx, [ebp - 0x28]
call fcn.0043f9f2
mov ecx, dword [ebx + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x457a63
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebx + 0xc]
lea ecx, [ebp - 0x28]
call fcn.0043fc80
push 4
push 0x429fac
lea ecx, [ebp - 0x28]
call fcn.0043fc80
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x457a99
mov ecx, dword [ebp - 0x28]
mov eax, dword [0x47f3b0]
lea esi, [ecx + eax*2]
lea eax, [ebp - 0x28]
jb 0x457aa9
mov eax, dword [ebp - 0x28]
push 0x10
push 0x429fb8
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wfsopen]
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x6c], edi
test edi, edi
je 0x457daf
cmp byte [0x47f87e], 0
je 0x457af3
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x457adc
mov ecx, dword [ebp - 0x28]
push ecx
push 0x429fc0
push 2
call sub.api_ms_win_crt_private_l1_1_0.dll__o___acrt_iob_func
pop ecx
push eax
call fcn.00476657
add esp, 0xc
movzx ecx, word [ebx + 8]
mov eax, ecx
and ecx, 0x3ff
shr eax, 0xa
push eax
push ecx
push 0x429fd0
push 0x494334
call fcn.00440df6
add esp, 0x10
cmp byte [0x47f876], 0
je 0x457b48
cmp dword [0x47f414], 8
mov eax, 0x47f400
jb 0x457b32
mov eax, dword [0x47f400]
push esi
push eax
push 0x429ff8
push 0x494334
call fcn.00440df6
add esp, 0x10
jmp 0x457b5b
push esi
push 0x42a018
push 0x494334
call fcn.00440df6
add esp, 0xc
mov eax, dword [0x4943d0]
and dword [ebp - 0x74], 0
mov dword [ebp - 0x64], eax
xor eax, eax
push edi
inc eax
push 4
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_fwrite]
imul edx, dword [0x4943d0], 0xc
add esp, 0x10
mov esi, dword [0x4943d4]
add edx, eax
mov dword [ebp - 0x70], edx
test esi, esi
je 0x457d12
mov eax, dword [esi + 4]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x50], eax
xor eax, eax
push edi
inc eax
mov dword [ebp - 0x4c], edx
push 0xc
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_fwrite]
mov edi, dword [esi + 0x10]
add esp, 0x10
xor eax, eax
mov dword [esi + 0xc], eax
mov ecx, eax
jmp 0x457c05
mov eax, dword [edi + 4]
cmp eax, dword [esi + 8]
ja 0x457c09
mov ecx, dword [edi + 0x14]
mov edx, dword [ebx + 8]
call fcn.0045742a
test eax, eax
jne 0x457bec
mov edx, ebx
mov ecx, edi
call fcn.00457445
xor eax, eax
inc eax
mov byte [ebp - 0x65], al
jmp 0x457c00
mov ecx, eax
call fcn.00457384
lea eax, [eax*2 + 8]
and eax, 0xfffffffc
add dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov edi, dword [edi]
test edi, edi
jne 0x457bc4
cmp byte [0x47f87e], 0
je 0x457c32
push ecx
push dword [esi + 8]
push dword [esi + 4]
push 0x42a030
push 2
call sub.api_ms_win_crt_private_l1_1_0.dll__o___acrt_iob_func
pop ecx
push eax
call fcn.00476657
mov ecx, dword [esi + 0xc]
add esp, 0x14
mov edx, dword [ebp - 0x70]
mov esi, dword [esi]
add edx, ecx
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x70], edx
test esi, esi
jne 0x457b95
mov esi, dword [0x4943d4]
jmp 0x457d0a
mov edi, dword [esi + 0x10]
jmp 0x457d00
mov eax, dword [edi + 4]
cmp eax, dword [esi + 8]
ja 0x457d08
mov ecx, dword [edi + 0x14]
mov edx, dword [ebx + 8]
call fcn.0045742a
test eax, eax
je 0x457cfe
lea edx, [ebp - 0x48]
mov ecx, eax
call fcn.004573b3
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x6c]
push 4
lea eax, [eax*2 + 8]
and eax, 0xfffc
mov word [ebp - 0x30], ax
xor eax, eax
inc eax
push eax
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_fwrite]
add esp, 0x10
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x34], 8
lea edx, [ebp - 0x48]
jb 0x457cbf
mov edx, dword [ebp - 0x48]
push dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x38]
xor eax, eax
add ecx, ecx
inc eax
push ecx
push eax
push edx
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_fwrite]
mov ecx, dword [ebp - 0x70]
add esp, 0x10
add ecx, eax
inc dword [ebp - 0x74]
movzx eax, cx
movzx ecx, word [ebp - 0x30]
sub ecx, eax
je 0x457cfe
push dword [ebp - 0x6c]
xor eax, eax
push ecx
inc eax
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_fwrite]
add esp, 0x10
mov edi, dword [edi]
test edi, edi
jne 0x457c5a
mov esi, dword [esi]
test esi, esi
jne 0x457c52
cmp byte [0x47f87e], 0
je 0x457d3f
push dword [ebp - 0x6c]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_ftell]
pop ecx
push eax
push dword [ebp - 0x74]
push 0x42a054
push 2
call sub.api_ms_win_crt_private_l1_1_0.dll__o___acrt_iob_func
pop ecx
push eax
call fcn.00476657
add esp, 0x10
push dword [ebp - 0x6c]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_fclose]
cmp byte [ebp - 0x65], 0
pop ecx
je 0x457d64
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x457d5b
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x457d75
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x457d70
mov ecx, dword [ebp - 0x28]
call fcn.0045170f
xor esi, esi
mov eax, dword [ebx]
mov ebx, eax
test eax, eax
jne 0x457a44
lea ecx, [ebp - 0x48]
call fcn.00440d4a
lea ecx, [ebp - 0x28]
call fcn.00440d4a
mov bl, byte [ebp - 0x65]
cmp dword [0x483efc], 0
je 0x457da4
call fcn.00455245
test bl, bl
sete al
call fcn.00476a77
ret
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x457dbb
mov eax, dword [ebp - 0x28]
push eax
xor eax, eax
inc eax
push 0x401ac8
push eax
call fcn.00451819
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.00440d4a
lea ecx, [ebp - 0x28]
call fcn.00440d4a
xor al, al
jmp 0x457da9