Function at 0x4408c4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc0], eax
mov eax, 0x511240
call fcn.004c0000
mov edx, dword [ebp - 0xc0]
mov cl, byte [edx + 0x24]
test cl, cl
je 0x44090d
xor eax, eax
mov edx, dword [ebp - 0xbc]
mov dword fs:[0], edx
jmp 0x4412ad
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x44129e
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0xd0], ecx
mov byte [ebp - 0xd5], 0
mov word [ebp - 0xac], 8
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xc0]
call sym.NDA.exe__THyPack_CheckFileName_qqrpxc
test eax, eax
jge 0x440969
mov ecx, dword [ebp - 0xc4]
push ecx
call fcn.004bfd38
pop ecx
cmp eax, 0x19
jbe 0x440a03
lea eax, [ebp - 0xbc]
push eax
push 0
push 0
push 0
push 1
push fcn.0042da80
push 0
lea eax, [ebp - 0x14]
mov word [ebp - 0xac], 0x14
mov edx, dword [ebp - 0xc4]
call fcn.004ceebc
inc dword [ebp - 0xa0]
mov edx, eax
xor eax, eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, 0x510c14
inc dword [ebp - 0xa0]
call fcn.004cf550
lea edx, [ebp - 0x18]
push edx
mov edx, 0x510c1f
lea eax, [ebp - 0x1c]
call fcn.004ceebc
inc dword [ebp - 0xa0]
xor eax, eax
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x1c]
inc dword [ebp - 0xa0]
lea ecx, [ebp - 0x20]
pop eax
call fcn.004cf074
lea ecx, [ebp - 0x20]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4b4708]
call fcn.004b6b60
push eax
push 0x401470
call fcn.004cbcdd
add esp, 0x24
mov word [ebp - 0xac], 0x20
push 0x20
lea eax, [ebp - 0x24]
mov word [ebp - 0xac], 0x2c
mov edx, dword [ebp - 0xc8]
call fcn.004ceebc
inc dword [ebp - 0xa0]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4a5eac]
call fcn.004a9700
mov dword [ebp - 0xcc], eax
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004cf01c
mov word [ebp - 0xac], 8
jmp 0x440b10
lea edx, [ebp - 0x20c]
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xc0]
call sym.NDA.exe__THyPack_MakeFTName_qqrr13THyFileTable3pxc
mov eax, dword [ebp - 0xc0]
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x1f4], edx
mov eax, dword [ebp - 0xcc]
call fcn.004a9494
mov dword [ebp - 0x1f0], eax
lea edx, [ebp - 0x1e4]
push edx
push 0
push 0
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ecx + 4]
push eax
call sub.KERNEL32.DLL_GetFileTime
mov edx, dword [ebp - 0x1f0]
test edx, edx
jne 0x440b70
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 0xc]
dec eax
je 0x440b82
mov edx, dword [ebp + 0xc]
cmp edx, 2
jne 0x440f16
lea edx, [ebp - 0x1dc]
mov eax, dword [ebp - 0xc0]
call sym.NDA.exe__THyPack_MakeTempFile_qqrpc
test al, al
jne 0x440be5
lea ecx, [ebp - 0xbc]
mov edx, 0x510c44
push ecx
push 0
push 0
push 0
push 1
push fcn.0042da80
push 0
lea eax, [ebp - 0x38]
mov word [ebp - 0xac], 0x44
call fcn.004ceebc
inc dword [ebp - 0xa0]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4b4708]
call fcn.004b6b60
push eax
push 0x401470
call fcn.004cbcdd
add esp, 0x24
mov word [ebp - 0xac], 0x50
push 0xffff
lea edx, [ebp - 0x1dc]
mov word [ebp - 0xac], 0x5c
lea eax, [ebp - 0x3c]
call fcn.004ceebc
inc dword [ebp - 0xa0]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4a5eac]
call fcn.004a9700
mov dword [ebp - 0xd0], eax
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004cf01c
mov word [ebp - 0xac], 8
jmp 0x440cf5
mov byte [ebp - 0xd5], 1
mov eax, dword [ebp - 0x1f0]
push eax
mov edx, dword [ebp + 0xc]
dec edx
push edx
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xc0]
call sym.NDA.exe__THyPack_FileEncode_qqrp15Classes_TStreamt1ii
mov dword [ebp - 0xd4], eax
mov cl, byte [ebp + 8]
test cl, cl
je 0x440d4e
mov eax, dword [ebp - 0xd4]
test eax, eax
jle 0x440ec7
mov edx, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0x1f0]
cmp edx, ecx
jge 0x440ec7
mov ebx, dword [ebp - 0xcc]
mov dword [ebp - 0x54], ebx
test ebx, ebx
je 0x440d7f
mov eax, dword [ebx]
mov dword [ebp - 0x50], eax
mov word [ebp - 0xac], 0x80
mov edx, 3
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xac], 0x74
xor edx, edx
mov dword [ebp - 0xcc], edx
mov ebx, dword [ebp - 0xd0]
mov dword [ebp - 0x5c], ebx
test ebx, ebx
je 0x440db8
mov eax, dword [ebx]
mov dword [ebp - 0x58], eax
mov word [ebp - 0xac], 0x98
mov edx, 3
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xac], 0x8c
mov word [ebp - 0xac], 0xa4
push 0x20
lea edx, [ebp - 0x1dc]
mov word [ebp - 0xac], 0xb0
lea eax, [ebp - 0x60]
call fcn.004ceebc
inc dword [ebp - 0xa0]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4a5eac]
call fcn.004a9700
mov dword [ebp - 0xd0], eax
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.004cf01c
mov word [ebp - 0xac], 8
jmp 0x440f16
mov dword [ebp + 0xc], 3
mov ebx, dword [ebp - 0xd0]
mov dword [ebp - 0x78], ebx
test ebx, ebx
je 0x440eff
mov eax, dword [ebx]
mov dword [ebp - 0x74], eax
mov word [ebp - 0xac], 0xd4
mov edx, 3
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xac], 0xc8
xor edx, edx
mov dword [ebp - 0xd0], edx
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0xcc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x1e8], al
mov byte [ebp - 0x1e7], 1
mov eax, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xc0]
mov eax, dword [eax + 0x28]
mov edx, dword [edx + 0x34]
add edx, 0x10
xor ecx, ecx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp + 0xc]
dec eax
je 0x440f50
mov edx, dword [ebp + 0xc]
cmp edx, 2
jne 0x440f88
mov ecx, dword [ebp - 0xd4]
push ecx
push 0
mov eax, dword [ebp - 0xc0]
mov edx, dword [eax + 0x28]
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xc0]
call sym.NDA.exe__THyPack_FileCopy_qqrp15Classes_TStreamt1io
mov word [ebp - 0x1e6], ax
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0x1ec], edx
jmp 0x440ffe
mov ecx, dword [ebp + 0xc]
cmp ecx, 3
jne 0x440fc8
mov eax, dword [ebp - 0x1f0]
push eax
push 1
mov edx, dword [ebp - 0xc0]
mov edx, dword [edx + 0x28]
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xc0]
call sym.NDA.exe__THyPack_FileCopy_qqrp15Classes_TStreamt1io
mov word [ebp - 0x1e6], ax
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x1ec], eax
jmp 0x440ffe
mov edx, dword [ebp - 0x1f0]
push edx
push 0
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ecx + 0x28]
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xc0]
call sym.NDA.exe__THyPack_FileCopy_qqrp15Classes_TStreamt1io
mov word [ebp - 0x1e6], ax
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
mov ebx, eax
add ebx, 0xf
and ebx, 0xfffffff0
mov word [ebp - 0xac], 8
mov edx, ebx
sub edx, eax
test edx, edx
jle 0x44105e
xor edx, edx
lea eax, [ebp - 0x21c]
mov byte [eax], 0
inc edx
inc eax
cmp edx, 0x10
jl 0x441025
mov ecx, ebx
mov eax, dword [ebp - 0x1ec]
sub ecx, eax
push ecx
mov edx, dword [ebp - 0xc0]
add edx, 0x68
push edx
lea ecx, [ebp - 0x21c]
mov eax, dword [ebp - 0xc0]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc0]
call sym.NDA.exe__THyPack_StreamWrite_qqrp15Classes_TStreampvipi
mov edx, dword [ebp - 0xc0]
mov ecx, dword [edx + 0x38]
test ecx, ecx
jne 0x441090
push 0x30
push 2
call sub.KERNEL32.DLL_GlobalAlloc
mov esi, eax
mov word [ebp - 0xac], 8
push esi
call sub.KERNEL32.DLL_GlobalLock
mov edx, dword [ebp - 0xc0]
mov dword [edx + 0x3c], eax
jmp 0x4410dc
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 0x3c]
push ecx
call sub.KERNEL32.DLL_GlobalHandle
mov esi, eax
mov word [ebp - 0xac], 8
push esi
call sub.KERNEL32.DLL_GlobalUnlock
push 2
mov eax, dword [ebp - 0xc0]
mov edx, dword [eax + 0x38]
inc edx
mov ecx, edx
shl ecx, 4
lea ecx, [ecx + ecx*2]
push ecx
push esi
call sub.KERNEL32.DLL_GlobalReAlloc
mov esi, eax
push esi
call sub.KERNEL32.DLL_GlobalLock
mov edx, dword [ebp - 0xc0]
mov dword [edx + 0x3c], eax
lea eax, [ebp - 0x20c]
push 0x30
push eax
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x3c]
mov ecx, dword [edx + 0x38]
shl ecx, 4
lea ecx, [ecx + ecx*2]
add eax, ecx
push eax
call fcn.004bfb94
add esp, 0xc
mov eax, dword [ebp - 0xc0]
add dword [eax + 0x34], ebx
mov edx, dword [ebp - 0xc0]
inc dword [edx + 0x38]
mov ecx, dword [ebp - 0xcc]
test ecx, ecx
je 0x441155
mov ebx, dword [ebp - 0xcc]
mov dword [ebp - 0x80], ebx
test ebx, ebx
je 0x441155
mov eax, dword [ebx]
mov dword [ebp - 0x7c], eax
mov word [ebp - 0xac], 0xec
mov edx, 3
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xac], 0xe0
mov edx, dword [ebp - 0xd0]
test edx, edx
je 0x441199
mov ebx, dword [ebp - 0xd0]
mov dword [ebp - 0x88], ebx
test ebx, ebx
je 0x441199
mov eax, dword [ebx]
mov dword [ebp - 0x84], eax
mov word [ebp - 0xac], 0x104
mov edx, 3
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xac], 0xf8
mov dl, byte [ebp - 0xd5]
test dl, dl
je 0x4411af
lea eax, [ebp - 0x1dc]
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov edx, dword [ebp - 0xc0]
mov byte [edx + 0x40], 1
mov word [ebp - 0xac], 0
jmp 0x44129e
mov al, 1
mov edx, dword [ebp - 0xbc]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8