Function at 0x40a051
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x8b8
lea ebp, [esp - 4]
mov eax, dword [0x4d7590]
xor eax, ebp
mov dword [ebp + 0x8b8], eax
push 0xd4
mov eax, 0x4a16cf
call fcn.00437e40
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x50]
xor esi, esi
push eax
mov edi, ecx
mov byte [ebp - 0xf], 0
mov byte [ebp - 0xe], 0
mov dword [ebp - 0x50], 0xc
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
call fcn.004084d5
test eax, eax
jne 0x40a0b4
mov ecx, edi
call fcn.004042cb
mov dword [ebp - 0x1c], esi
test al, al
je 0x40a0bb
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x3c]
call fcn.0040d2c5
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00408e21
mov dword [ebp - 0x24], eax
mov byte [ebp - 0xd], 0
call fcn.0041a7e3
push eax
lea ecx, [ebp - 0x18]
call fcn.00401bb0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00405c20
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00405c20
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 3
call fcn.00405c20
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 4
call fcn.00405c20
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.0040d2c5
xor ebx, ebx
cmp dword [ebp - 0x24], esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], esi
jle 0x40a4b7
lea ecx, [ebp]
call fcn.00404203
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004047b9
lea ecx, [ebp]
push ecx
push dword [eax]
mov ecx, dword [0x4dbf5c]
call fcn.00404299
test al, al
je 0x40a4ad
cmp dword [ebp + 0x34], 1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
je 0x40a19c
cmp dword [ebp + 0x34], 9
jne 0x40a22d
mov edx, eax
or edx, ecx
je 0x40a22d
cmp eax, dword [ebp + 0x10]
jne 0x40a22d
cmp ecx, dword [ebp + 0x14]
jne 0x40a22d
cmp dword [ebp + 0x30], 1
jne 0x40a1d2
cmp dword [ebp + 0x34], 9
jne 0x40a1e0
push ecx
lea eax, [ebp + 0x40]
mov ecx, esp
mov dword [ebp - 0x6c], esp
push eax
call fcn.00406b00
mov ecx, edi
call fcn.004054fe
cmp eax, esi
je 0x40a1cc
lea eax, [ebp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x30], 1
je 0x40a1e0
cmp dword [ebp + 0xc], esi
ja 0x40a1e0
cmp dword [ebp + 8], 0x2800
jb 0x40a22d
cmp dword [ebp + 0x8b0], esi
jne 0x40a1f9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040802f
jmp 0x40a22d
cmp dword [ebp + 0x8ac], esi
jne 0x40a22d
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004047b9
push dword [eax]
mov ecx, dword [0x4dbf5c]
call fcn.00404255
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004047b9
push dword [eax]
mov ecx, dword [0x4dbf5c]
call fcn.0040426a
cmp dword [ebp + 0x30], 1
jne 0x40a472
cmp dword [ebp + 0x34], 1
je 0x40a2a6
cmp dword [ebp + 0x34], 9
je 0x40a29c
cmp byte [ebp - 0xd], 0
jne 0x40a29c
lea eax, [ebp + 0x660]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040296f
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00404c48
cmp eax, 0xffffffff
je 0x40a272
inc eax
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.004055f5
push 0xf
push str.SoftManager.exe
lea ecx, [ebp - 0x18]
call fcn.00405258
push eax
call fcn.0043a3ff
add esp, 0xc
test eax, eax
jne 0x40a292
mov byte [ebp - 0xd], 1
cmp dword [ebp + 0x30], 1
jne 0x40a472
cmp dword [ebp + 0x34], 1
jne 0x40a478
cmp dword [ebp + 0x8b0], esi
je 0x40a2e7
cmp dword [ebp + 0x8ac], esi
jne 0x40a2e7
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004047b9
push dword [eax]
mov ecx, dword [0x4dbf5c]
call fcn.00404255
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004047b9
push dword [eax]
mov ecx, dword [0x4dbf5c]
call fcn.0040426a
jmp 0x40a4ad
push ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0x4a9da0
call fcn.00406b00
push ecx
lea eax, [ebp + 0x40]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
mov byte [ebp - 4], 7
call fcn.00406b00
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00405ae1
test al, al
jne 0x40a331
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004047b9
push dword [eax]
mov ecx, dword [0x4dbf5c]
call fcn.00404240
jmp 0x40a2cc
cmp dword [ebp - 0x1c], esi
je 0x40a425
call fcn.0041a7e3
push eax
lea ecx, [ebp - 0x20]
call fcn.00401bb0
lea eax, [ebp + 0x86c]
push eax
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x40a368
xor ecx, ecx
jmp 0x40a384
lea eax, [esi + esi]
call fcn.0043a610
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x86c]
push ecx
push eax
call fcn.00404070
mov ecx, eax
push dword [ebp + 0xc]
lea eax, [ebp + 0x660]
push dword [ebp + 8]
xor edx, edx
push eax
lea eax, [ebp + 0x40]
push eax
mov eax, dword [ebp + 0x8ac]
mov esi, 0x3e8
div esi
push eax
lea eax, [ebp + 0x44c]
push eax
lea eax, [ebp + 0x24c]
push eax
push ecx
lea eax, [ebp - 0x20]
push str.pdown:__p2_sb5_sb6_sp4_d__s__s__u_
push eax
call fcn.00402b23
add esp, 0x28
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x504]
call fcn.00408cbd
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.004058e4
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004047b9
push dword [eax]
mov ecx, dword [0x4dbf5c]
call fcn.00404255
push ebx
lea ecx, [ebp - 0x3c]
movzx esi, al
call fcn.004047b9
push dword [eax]
mov ecx, dword [0x4dbf5c]
call fcn.0040426a
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.00401111
test esi, esi
jne 0x40a4ab
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040802f
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004047b9
push eax
lea ecx, [ebp - 0x68]
call fcn.00408c6a
push esi
push 0x400
push dword [edi + 0x4e4]
push dword [edi + 0x4e0]
call fcn.00436f40
mov ecx, dword [ebp + 0xc]
cmp ecx, edx
ja 0x40a4ad
jb 0x40a46d
mov ecx, dword [ebp + 8]
cmp ecx, eax
jae 0x40a4ad
inc dword [ebp - 0x14]
jmp 0x40a4ad
cmp dword [ebp + 0x34], 1
je 0x40a4ad
cmp dword [ebp + 0x34], 9
je 0x40a4ad
cmp dword [ebp + 0x30], 1
je 0x40a492
cmp dword [ebp + 0xc], esi
ja 0x40a492
cmp dword [ebp + 8], 0x2800
jb 0x40a4ad
cmp dword [ebp + 0x8b0], esi
jne 0x40a4ad
lea eax, [ebp]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040802f
jmp 0x40a4ad
xor esi, esi
inc ebx
cmp ebx, dword [ebp - 0x24]
jl 0x40a140
cmp byte [ebp - 0xf], 0
je 0x40a4e6
cmp byte [ebp - 0xd], 0
je 0x40a4d1
cmp dword [ebp - 0x1c], esi
jne 0x40a4d1
cmp byte [ebp - 0xe], 0
jne 0x40a4d1
mov dword [ebp - 0x48], esi
mov eax, dword [0x4dbf5c]
mov eax, dword [eax + 0x10]
cmp eax, esi
je 0x40a4e6
lea ecx, [ebp - 0x50]
push esi
push ecx
call eax
pop ecx
pop ecx
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xc4]
push eax
mov ecx, edi
call fcn.00409b25
mov ecx, dword [edi + 0xdc]
push esi
lea eax, [ebp - 0xc4]
push eax
call fcn.00411e45
mov ecx, dword [edi + 0xd8]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0041778c
mov eax, dword [edi + 0x4d8]
cmp dword [ebp - 0x14], eax
jbe 0x40a539
mov dword [ebp - 0x14], eax
lea esi, [edi + 0x4d4]
mov eax, dword [esi]
add eax, dword [ebp - 0x14]
cmp dword [ebp - 0x74], eax
jbe 0x40a5b2
call fcn.00437f5c
mov ecx, dword [esi]
add ecx, dword [ebp - 0x14]
xor edx, edx
div ecx
lea ecx, [ebp - 0x68]
mov esi, edx
push esi
call fcn.004047b9
push dword [eax]
mov ecx, dword [0x4dbf5c]
call fcn.00404255
push esi
lea ecx, [ebp - 0x68]
call fcn.004047b9
push dword [eax]
mov ecx, dword [0x4dbf5c]
call fcn.0040426a
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x44]
call fcn.0040539b
push esi
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x44]
call fcn.00405272
push dword [eax + 4]
lea ecx, [ebp - 0x68]
push dword [eax]
lea eax, [ebp - 0x44]
push eax
call fcn.00405cf8
lea ecx, [ebp - 0x68]
call fcn.0040c21d
push dword [ebp - 0x68]
call fcn.00418636
pop ecx
lea ecx, [ebp - 0xe0]
call fcn.0040530c
push dword [ebp - 0xe0]
call fcn.00418636
pop ecx
lea ecx, [ebp - 0xa8]
call fcn.0040530c
push dword [ebp - 0xa8]
call fcn.00418636
pop ecx
lea ecx, [ebp - 0x8c]
call fcn.0040530c
push dword [ebp - 0x8c]
call fcn.00418636
pop ecx
lea ecx, [ebp - 0xc4]
call fcn.0040530c
push dword [ebp - 0xc4]
call fcn.00418636
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401111
lea ecx, [ebp - 0x3c]
call fcn.0040c21d
push dword [ebp - 0x3c]
call fcn.00418636
pop ecx
lea esp, [ebp - 0xf0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8b8]
xor ecx, ebp
call fcn.00436eab
add ebp, 0x8bc
leave
ret