Function at 0x42ca70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x47c554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, 1
push esi
push edi
mov dword [ebp - 0x110], ebx
cmp byte [ebp + 8], bl
jne 0x42cf1f
cmp byte [0x4b08e1], 0
mov byte [ebp - 0x118], 0
je 0x42cd17
push 2
push 0
push ebx
push 0x4b07c8
call fcn.00413470
add esp, 0x10
cmp al, bl
jne 0x42cce3
xor edi, edi
mov esi, 0x4c1904
mov ebx, 0x4b84b9
lea eax, [esi - 0x1c]
mov byte [ebx + 3], 0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 0x4b07dc
push str._sWorkBLOC_04u.DL0
lea eax, [ebp - 0x10c]
mov dword [esi], 0
push 0x105
push eax
mov byte [esi - 4], 0
call fcn.004038d0
add esp, 0x14
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push 0x4b07dc
push str._sWorkBLOC_04u.DL1
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.004038d0
add esp, 0x14
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebx], 1
jne 0x42cb5d
push 0
push edi
mov dword [esi], 0
call fcn.00413a20
add esp, 8
mov byte [ebx + 1], al
add esi, 0x58
inc edi
add ebx, 0x8c
cmp esi, 0x4c64a4
jl 0x42cad4
push 0x402
push 0x4b07c8
call fcn.0040c920
mov eax, dword [0x4b84b4]
add esp, 8
xor edi, edi
mov dword [0x522764], eax
xor ebx, ebx
cmp byte [0x4bfd2c], 1
jne 0x42cbb3
mov eax, dword [0x4bfd34]
xor ecx, ecx
add eax, 0x80
mov edi, eax
cmovs edi, ecx
test eax, eax
js 0x42cbb3
mov ebx, eax
cmp byte [0x4c023c], 1
jne 0x42cbd4
mov ecx, dword [0x4c0240]
add ecx, 4
cmp edi, ecx
mov eax, ecx
cmovg eax, edi
mov edi, eax
cmp ebx, ecx
jg 0x42cbd4
mov ebx, ecx
cmp byte [0x4c0248], 1
jne 0x42ccb5
xor eax, eax
mov dword [ebp - 0x114], 0
cmp ax, word [0x4c024a]
jae 0x42ccb5
mov esi, 0x4c0266
nop
movzx eax, word [esi - 2]
push eax
call fcn.00431aa0
add esp, 4
test al, al
je 0x42cc4b
movzx eax, word [esi]
push eax
call fcn.00431b40
movsx ecx, word [esi + 2]
add esp, 4
cdq
and edx, 0xf
add eax, edx
sar eax, 4
add ecx, eax
cmp edi, ecx
jg 0x42cc4b
movzx eax, word [esi]
push eax
call fcn.00431b40
movsx edi, word [esi + 2]
add esp, 4
cdq
and edx, 0xf
add eax, edx
sar eax, 4
add edi, eax
movzx eax, word [esi - 2]
push eax
call fcn.00431af0
add esp, 4
test al, al
je 0x42cc96
movzx eax, word [esi]
push eax
call fcn.00431b40
movsx ecx, word [esi + 2]
add esp, 4
cdq
and edx, 0xf
add eax, edx
sar eax, 4
add ecx, eax
cmp ebx, ecx
jg 0x42cc96
movzx eax, word [esi]
push eax
call fcn.00431b40
movsx ebx, word [esi + 2]
add esp, 4
cdq
and edx, 0xf
add eax, edx
sar eax, 4
add ebx, eax
mov ecx, dword [ebp - 0x114]
add esi, 0xa
movzx eax, word [0x4c024a]
inc ecx
mov dword [ebp - 0x114], ecx
cmp ecx, eax
jl 0x42cc00
cmp edi, ebx
cmovg ebx, edi
cmp dword [0x4bfd08], ebx
jge 0x42ccd5
push str.The_system_increased_the_number_of_I_O_Module__according_to_the_I_O_configuration
mov dword [0x4bfd08], ebx
call fcn.0040e750
add esp, 4
mov ebx, dword [ebp - 0x110]
mov byte [ebp - 0x118], bl
jmp 0x42cd30
push 0x402
push 0
xor bl, bl
mov dword [0x522764], 0x4d2
call fcn.0040c920
push 0x110f0
push 0
push 0x4b07c8
call fcn.0043d400
add esp, 0x14
mov byte [ebp - 0x118], bl
jmp 0x42cd30
push 0x402
push 0
mov dword [0x522764], 0x4d2
call fcn.0040c920
add esp, 8
push dword [ebp - 0x118]
push 1
call fcn.00415020
add esp, 8
cmp al, 1
jne 0x42ce2d
cmp byte [0x4c18b8], al
jne 0x42cd77
mov eax, dword [0x4c18d9]
mov cl, byte [eax + 0x2f]
test cl, 2
jne 0x42cd62
test cl, 1
jne 0x42cd73
and cl, 6
cmp cl, 6
je 0x42cd73
or byte [eax + 0x2e], 1
mov eax, dword [0x4c18d9]
or byte [eax + 0x2c], 1
push str.ISIPLC_CONSOLE
push 0x1f
push 0x522744
call fcn.0043f2f3
add esp, 0xc
mov dword [0x522768], 0xa
cmp dword [0x4c6488], 0
mov dword [0x52276c], 0x10
mov dword [0x522770], 0x46fe58
mov dword [0x522774], 0x438440
jne 0x42cdd8
push 0x522744
call fcn.00406b80
xor ecx, ecx
movzx ebx, bl
add esp, 4
mov dword [0x4c6488], eax
test eax, eax
cmove ebx, ecx
cmp byte [0x4bfd2c], 1
mov byte [0x4b07c8], 1
jne 0x42cdf2
push 1
call fcn.004177d0
add esp, 4
cmp byte [0x4c023c], 1
jne 0x42ce05
push 1
call fcn.00418e80
add esp, 4
cmp byte [0x4c0248], 1
jne 0x42ce18
push 1
call fcn.0041ab40
add esp, 4
cmp byte [0x4c0c60], 1
jne 0x42ce35
push 1
call fcn.0041d7f0
add esp, 4
jmp 0x42ce35
xor bl, bl
mov byte [0x4b07c8], bl
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
xor eax, eax
cmp byte [0x4b07c8], 1
sete al
push eax
push 0x3ec
push dword [0x47cea4]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
xor eax, eax
cmp byte [0x4b07c8], 1
sete al
push eax
push 0x3f9
push dword [0x47cea4]
call edi
push eax
call esi
xor eax, eax
cmp byte [0x4b07c8], 1
sete al
push eax
push 0x3f6
push dword [0x47cea4]
call edi
push eax
call esi
xor eax, eax
cmp byte [0x4b07c8], 1
sete al
push eax
push 0x3fa
push dword [0x47cea4]
call edi
push eax
call esi
xor eax, eax
cmp byte [0x4b07c8], 1
sete al
push eax
push 0x3039
push dword [0x47cea4]
call edi
push eax
call esi
xor eax, eax
cmp byte [0x4b07c8], 1
sete al
push eax
push 0x3f5
push dword [0x47cea4]
call edi
push eax
call esi
xor ecx, ecx
cmp byte [0x4b07c8], 1
sete cl
push ecx
push 0x402
push dword [0x47cea4]
call edi
push eax
call esi
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b572
mov esp, ebp
pop ebp
ret
mov byte [0x4b07c8], 0
cmp byte [0x4bfd2c], bl
jne 0x42cf38
push 0
call fcn.004177d0
add esp, 4
cmp byte [0x4c023c], bl
jne 0x42cf4a
push 0
call fcn.00418e80
add esp, 4
cmp byte [0x4c0248], bl
jne 0x42cf5c
push 0
call fcn.0041ab40
add esp, 4
cmp byte [0x4c0c60], bl
jne 0x42cf6e
push 0
call fcn.0041d7f0
add esp, 4
mov eax, dword [0x4c6488]
test eax, eax
je 0x42cf85
cmp byte [ebp + 0xc], bl
jne 0x42cf85
push eax
call fcn.00406d70
add esp, 4
push 0
push 0
call fcn.00415020
add esp, 8
mov ebx, 0x4c1904
xor esi, esi
mov edi, 0x4b84ba
nop dword [eax]
cmp byte [edi], 1
jne 0x42cfb0
push dword [ebx]
push esi
call fcn.00415640
add esp, 8
push esi
push 0x4b07dc
push str._sWorkBLOC_04u.DL0
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.004038d0
add esp, 0x14
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push 0x4b07dc
push str._sWorkBLOC_04u.DL1
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.004038d0
add esp, 0x14
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add edi, 0x8c
inc esi
add ebx, 0x58
cmp edi, 0x4bfd0a
jl 0x42cfa0
cmp byte [0x4b08e1], 0
mov byte [0x4b8444], 0
je 0x42d037
push 0x4b07c8
call fcn.004129f0
add esp, 4
push 2
push 0x4b07c8
call fcn.00412f90
push 0x402
push 0
call fcn.0040c920
mov ecx, dword [ebp - 4]
add esp, 0x10
mov al, byte [ebp - 0x110]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043b572
mov esp, ebp
pop ebp
ret