Function at 0x433af0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
xor ebx, ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], ebx
xor esi, esi
mov dword [ebp - 0xc], edi
cmp dword [ebp + 0x28], 2
mov dword [ebp - 4], ebx
setne al
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
lea eax, [eax*8 + 0x18]
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x433b40
push 0x49b9f0
push ecx
call sub.MSVCRT.dll__wfopen
mov ebx, eax
add esp, 8
mov dword [ebp - 0x10], ebx
jmp 0x433b6a
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [ebp + 0x10]
imul eax, dword [ebp + 0x14]
add eax, 0x8000
push eax
push 0
push dword [0x5840f4]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0xc], edi
test ebx, ebx
jne 0x433b76
test edi, edi
je 0x433e5d
push 0
push 0
push 0
push str.1.6.19
call fcn.00462b90
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
je 0x433e02
push 0x40
push sub.MSVCRT.dll_longjmp
push eax
call fcn.0045dbf0
push 0
push eax
call sub.MSVCRT.dll__setjmp3
add esp, 0x14
test eax, eax
je 0x433c07
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00462c70
mov eax, dword [ebp - 0x14]
add esp, 8
test eax, eax
je 0x433bd0
push eax
call fcn.0044db78
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x433bf4
push eax
call sub.MSVCRT.dll_fclose
add esp, 4
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_DeleteFileW]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push dword [ebp - 0xc]
call fcn.00451140
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x433c1c
push ebx
push dword [ebp - 4]
call fcn.00459390
add esp, 8
jmp 0x433c2e
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call fcn.00433ea0
add esp, 0xc
push dword [ebp - 4]
call fcn.004582a0
push 8
push 0
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.00463610
push 9
push dword [ebp - 4]
call fcn.004635f0
mov ecx, dword [ebp + 0x24]
add esp, 0x18
lea eax, [ecx - 1]
cmp eax, 7
ja 0x433d66
push dword [ebp + 0x20]
mov esi, dword [ebp + 0x10]
mov eax, 1
push ecx
push dword [ebp + 0x18]
shl eax, cl
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
call fcn.0044d9bd
push 0
push 0
push 0
push 3
push dword [ebp + 0x24]
mov edi, eax
push dword [ebp + 0x14]
mov dword [ebp - 0x14], edi
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00464bc0
mov eax, dword [ebp - 0x18]
add esp, 0x40
test eax, eax
jle 0x433ce1
lea ecx, [ebp - 0x323]
mov esi, eax
lea edx, [edi + 0x51]
jmp 0x433cc0
movzx eax, byte [edx + 1]
lea edx, [edx + 4]
mov byte [ecx - 1], al
lea ecx, [ecx + 3]
movzx eax, byte [edx - 4]
mov byte [ecx - 3], al
movzx eax, byte [edx - 5]
mov byte [ecx - 2], al
dec esi
jne 0x433cc0
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00464c80
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004640e0
add esp, 0x18
test byte [ebp + 0x1c], 2
je 0x433d34
mov esi, dword [ebp + 0x14]
dec esi
js 0x433d5b
mov edi, edi
push esi
push edi
call fcn.0044dbc4
push eax
push dword [ebp - 4]
call fcn.004644f0
add esp, 0x10
dec esi
jns 0x433d10
push edi
call fcn.0044db78
add esp, 4
jmp 0x433de2
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x433d5b
mov ebx, dword [ebp + 0x14]
mov edi, edi
push esi
push edi
call fcn.0044dbc4
push eax
push dword [ebp - 4]
call fcn.004644f0
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x433d40
mov ebx, dword [ebp - 0x10]
push edi
call fcn.0044db78
add esp, 4
jmp 0x433de2
mov esi, dword [ebp + 0x14]
push 0
push 0
push 0
push dword [ebp + 0x28]
push 8
push esi
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00464bc0
push dword [ebp - 4]
call fcn.00462a00
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004640e0
add esp, 0x30
test byte [ebp + 0x1c], 2
je 0x433dc4
lea edi, [esi - 1]
imul edi, dword [ebp + 0x18]
add edi, dword [ebp + 0xc]
test esi, esi
jle 0x433de2
lea ecx, [ecx]
push edi
push dword [ebp - 4]
call fcn.004644f0
sub edi, dword [ebp + 0x18]
add esp, 8
dec esi
jne 0x433db0
jmp 0x433de2
mov edi, dword [ebp + 0xc]
test esi, esi
jle 0x433de2
jmp 0x433dd0
push edi
push dword [ebp - 4]
call fcn.004644f0
add edi, dword [ebp + 0x18]
add esp, 8
dec esi
jne 0x433dd0
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004638a0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00462c70
add esp, 0x10
mov esi, 1
test ebx, ebx
je 0x433e27
push ebx
call sub.MSVCRT.dll_fclose
add esp, 4
test esi, esi
jne 0x433e5d
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
test esi, esi
je 0x433e4c
push 1
push dword [ebp - 0x20]
call fcn.00450f20
mov edi, eax
test edi, edi
je 0x433e4c
push dword [ebp - 0x20]
push dword [ebp - 0xc]
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov esi, edi
push dword [ebp - 0xc]
push 0
push dword [0x5840f4]
call dword [sym.imp.kernel32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24