Function at 0x434230
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 0x434280
push 0x48909c
push ecx
call sub.MSVCRT.dll_fopen
mov ebx, eax
add esp, 8
mov dword [ebp - 0x10], ebx
jmp 0x4342aa
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 [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0xc], edi
test ebx, ebx
jne 0x4342b6
test edi, edi
je 0x43459d
push 0
push 0
push 0
push str.1.6.19
call fcn.00451eb0
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
je 0x434542
push 0x40
push 0x430697
push eax
call fcn.0044cf10
push 0
push eax
call sub.MSVCRT.dll__setjmp3
add esp, 0x14
test eax, eax
je 0x434347
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00451f90
mov eax, dword [ebp - 0x14]
add esp, 8
test eax, eax
je 0x434310
push eax
call fcn.00441d55
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x434334
push eax
call sub.MSVCRT.dll_fclose
add esp, 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push dword [ebp - 0xc]
call fcn.00442f70
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 0x43435c
push ebx
push dword [ebp - 4]
call fcn.004486b0
add esp, 8
jmp 0x43436e
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call fcn.004345e0
add esp, 0xc
push dword [ebp - 4]
call fcn.004475c0
push 8
push 0
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.00452930
push 9
push dword [ebp - 4]
call fcn.00452910
mov ecx, dword [ebp + 0x24]
add esp, 0x18
lea eax, [ecx - 1]
cmp eax, 7
ja 0x4344a6
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.00441b9a
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.00453ee0
mov eax, dword [ebp - 0x18]
add esp, 0x40
test eax, eax
jle 0x434421
lea ecx, [ebp - 0x323]
mov esi, eax
lea edx, [edi + 0x51]
jmp 0x434400
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 0x434400
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00453fa0
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00453400
add esp, 0x18
test byte [ebp + 0x1c], 2
je 0x434474
mov esi, dword [ebp + 0x14]
dec esi
js 0x43449b
mov edi, edi
push esi
push edi
call fcn.00441da1
push eax
push dword [ebp - 4]
call fcn.00453810
add esp, 0x10
dec esi
jns 0x434450
push edi
call fcn.00441d55
add esp, 4
jmp 0x434522
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x43449b
mov ebx, dword [ebp + 0x14]
mov edi, edi
push esi
push edi
call fcn.00441da1
push eax
push dword [ebp - 4]
call fcn.00453810
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x434480
mov ebx, dword [ebp - 0x10]
push edi
call fcn.00441d55
add esp, 4
jmp 0x434522
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.00453ee0
push dword [ebp - 4]
call fcn.00451d20
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00453400
add esp, 0x30
test byte [ebp + 0x1c], 2
je 0x434504
lea edi, [esi - 1]
imul edi, dword [ebp + 0x18]
add edi, dword [ebp + 0xc]
test esi, esi
jle 0x434522
lea ecx, [ecx]
push edi
push dword [ebp - 4]
call fcn.00453810
sub edi, dword [ebp + 0x18]
add esp, 8
dec esi
jne 0x4344f0
jmp 0x434522
mov edi, dword [ebp + 0xc]
test esi, esi
jle 0x434522
jmp 0x434510
push edi
push dword [ebp - 4]
call fcn.00453810
add edi, dword [ebp + 0x18]
add esp, 8
dec esi
jne 0x434510
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00452bc0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00451f90
add esp, 0x10
mov esi, 1
test ebx, ebx
je 0x434567
push ebx
call sub.MSVCRT.dll_fclose
add esp, 4
test esi, esi
jne 0x43459d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
test esi, esi
je 0x43458c
push 1
push dword [ebp - 0x20]
call fcn.00442eb0
mov edi, eax
test edi, edi
je 0x43458c
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 [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24