Function at 0x4574ca
Capabilities:
Delete file

Disassembly:
push 0x78
mov eax, 0x477cb8
call fcn.00476acd
mov byte [ebp - 0x65], cl
xor ecx, ecx
mov eax, 0x100
mov bl, cl
mov dword [ebp - 0x84], ecx
mov edi, ecx
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x66], bl
cmp dword [0x4943d0], ecx
je 0x457963
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_malloc]
mov edi, eax
mov dword [ebp - 0x70], edi
pop ecx
test edi, edi
jne 0x457537
cmp dword [0x47f3b4], 8
mov eax, 0x47f3a0
jb 0x457520
mov eax, dword [0x47f3a0]
push eax
push 0x429f80
push 1
call fcn.00451819
add esp, 0xc
xor al, al
jmp 0x45797e
push 0x47f3a0
lea ecx, [ebp - 0x28]
call fcn.0044a94c
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
mov ebx, dword [0x47f880]
mov dword [ebp - 0x74], ebx
test ebx, ebx
je 0x457950
cmp byte [ebx + 0x10], 0
je 0x45793e
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 0x45758d
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 0x4575c3
mov ecx, dword [ebp - 0x28]
mov eax, dword [0x47f3b0]
lea esi, [ecx + eax*2]
lea eax, [ebp - 0x28]
jb 0x4575d3
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 0x4579b4
cmp byte [0x47f87e], 0
je 0x45761d
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x457606
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 0x457672
cmp dword [0x47f414], 8
mov eax, 0x47f400
jb 0x45765c
mov eax, dword [0x47f400]
push esi
push eax
push 0x429ff8
push 0x494334
call fcn.00440df6
add esp, 0x10
jmp 0x457685
push esi
push 0x42a018
push 0x494334
call fcn.00440df6
add esp, 0xc
mov eax, dword [0x4943d0]
and dword [ebp - 0x7c], 0
push edi
push 4
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push 1
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 - 0x78], edx
test esi, esi
je 0x4578d9
mov eax, dword [esi + 4]
push edi
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 8]
push 0xc
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x54]
push 1
push eax
mov dword [ebp - 0x4c], edx
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 0x457754
mov eax, dword [edi + 4]
cmp eax, dword [esi + 8]
ja 0x457758
mov ecx, dword [edi + 0x14]
mov edx, dword [ebx + 8]
call fcn.0045742a
test eax, eax
jne 0x457710
mov edx, ebx
mov ecx, edi
call fcn.00457445
mov byte [ebp - 0x66], 1
jmp 0x45774f
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.004573b3
cmp byte [ebp - 0x65], 0
mov ecx, 0xfde9
jne 0x457728
mov ecx, dword [ebx + 0x14]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x457734
mov eax, dword [ebp - 0x40]
xor edx, edx
push edx
push edx
push edx
push edx
push dword [ebp - 0x30]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add eax, 8
and eax, 0xfffffffc
add dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov edi, dword [edi]
test edi, edi
jne 0x4576ea
cmp byte [0x47f87e], 0
je 0x457781
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 - 0x78]
mov esi, dword [esi]
add edx, ecx
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x78], edx
test esi, esi
jne 0x4576bd
mov esi, dword [0x4943d4]
jmp 0x4578d1
mov edi, dword [esi + 0x10]
jmp 0x4578c7
mov eax, dword [edi + 4]
cmp eax, dword [esi + 8]
ja 0x4578cf
mov ecx, dword [edi + 0x14]
mov edx, dword [ebx + 8]
call fcn.0045742a
test eax, eax
je 0x4578c5
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.004573b3
cmp byte [ebp - 0x65], 0
mov ecx, 0xfde9
jne 0x4577e0
mov ecx, dword [ebx + 0x14]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x4577ec
mov eax, dword [ebp - 0x40]
xor edx, edx
push edx
push edx
push edx
push edx
push dword [ebp - 0x30]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x6c]
mov ebx, eax
lea eax, [ebp - 0x48]
push 4
push 1
push eax
lea ecx, [ebx + 8]
and ecx, 0xfffc
mov word [ebp - 0x48], cx
movzx ecx, byte [ebp - 0x65]
add cx, cx
mov word [ebp - 0x46], cx
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_fwrite]
add esp, 0x10
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x80], ebx
jae 0x457852
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_realloc]
pop ecx
pop ecx
test eax, eax
je 0x457984
mov edx, eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x70], edx
jmp 0x457855
mov edx, dword [ebp - 0x70]
cmp byte [ebp - 0x65], 0
je 0x457862
mov ecx, 0xfde9
jmp 0x457868
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x14]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x457874
mov eax, dword [ebp - 0x40]
push 0
push 0
push ebx
push edx
push dword [ebp - 0x30]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x6c]
push ebx
push 1
push dword [ebp - 0x70]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_fwrite]
mov ecx, dword [ebp - 0x78]
add esp, 0x10
add ecx, eax
inc dword [ebp - 0x7c]
movzx eax, cx
movzx ecx, word [ebp - 0x48]
sub ecx, eax
je 0x4578c2
push dword [ebp - 0x6c]
lea eax, [ebp - 0x84]
push ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_fwrite]
add esp, 0x10
mov ebx, dword [ebp - 0x74]
mov edi, dword [edi]
test edi, edi
jne 0x4577a9
mov esi, dword [esi]
test esi, esi
jne 0x4577a1
cmp byte [0x47f87e], 0
je 0x457906
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 - 0x7c]
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 - 0x66], 0
pop ecx
je 0x45792b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x457922
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x45793c
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x457937
mov ecx, dword [ebp - 0x28]
call fcn.0045170f
xor esi, esi
mov eax, dword [ebx]
mov ebx, eax
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x45756e
mov edi, dword [ebp - 0x70]
lea ecx, [ebp - 0x40]
call fcn.00440d4a
lea ecx, [ebp - 0x28]
call fcn.00440d4a
mov bl, byte [ebp - 0x66]
cmp dword [0x483efc], 0
je 0x457971
call fcn.00455245
push edi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_free]
test bl, bl
pop ecx
sete al
call fcn.00476a77
ret
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x457990
mov eax, dword [ebp - 0x28]
push eax
push 0x429f80
push 1
call fcn.00451819
push dword [ebp - 0x70]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_free]
push dword [ebp - 0x6c]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_fclose]
add esp, 0x14
jmp 0x4579d9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4579c0
mov eax, dword [ebp - 0x28]
push eax
push 0x401ac8
push 1
call fcn.00451819
push dword [ebp - 0x70]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_free]
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00440d4a
lea ecx, [ebp - 0x28]
call fcn.00440d4a
jmp 0x457530