Function at 0x405120
Capabilities:
Delete file
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x44f373
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
lea ecx, [esp + 0x54]
mov dword [esp + 0x18c], edi
call fcn.00441510
mov eax, dword [ebx]
mov byte [esp + 0x18c], 1
cmp eax, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], edi
je 0x405664
mov esi, dword [esp + 0x1a8]
mov eax, dword [esp + 0x1a4]
sub esi, eax
js 0x405664
mov ebp, dword [ebx + 0x74]
mov eax, dword [ebx + 0x58]
xor ecx, ecx
cmp ebp, 1
sete cl
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.00441890
test eax, eax
je 0x405664
push esi
lea ecx, [esp + 0x58]
call fcn.00434040
push eax
mov ecx, ebx
call fcn.00405730
mov edx, dword [esp + 0x194]
mov esi, eax
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x19c], edi
jne 0x40522b
mov eax, dword [esp + 0x194]
push esi
push eax
lea ecx, [esp + 0x5c]
call fcn.00441e40
test eax, eax
je 0x405664
push 0x40000
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, edi
mov dword [esp + 0x24], 0x20000
jne 0x4053af
push edi
lea ecx, [esp + 0x58]
call fcn.00441f90
jmp 0x405664
push str.BLADEENC.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, edi
mov dword [esp + 0x34], ebp
jne 0x40524e
push 0xffffffffffffffff
push 0x40
push 0xef3d
jmp 0x40565f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.beInitStream
push ebp
call esi
push str.beEncodeChunk
push ebp
mov dword [0x47c7c4], eax
call esi
push str.beDeinitStream
push ebp
mov dword [0x47c7d4], eax
call esi
push str.beCloseStream
push ebp
mov dword [0x47c7d0], eax
call esi
push 0x47a05c
push ebp
mov dword [0x47c7c8], eax
call esi
mov ecx, dword [0x47c7c4]
mov dword [0x47c7cc], eax
cmp ecx, edi
je 0x405656
cmp dword [0x47c7d4], edi
je 0x405656
cmp dword [0x47c7d0], edi
je 0x405656
cmp dword [0x47c7c8], edi
je 0x405656
cmp eax, edi
je 0x405656
mov ecx, dword [esp + 0x194]
push 0x80
push 0x8301
push ecx
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
or ebp, 0xffffffff
add esp, 0xc
cmp esi, ebp
mov dword [esp + 0x28], esi
je 0x40535d
mov edx, dword [ebx + 0x74]
mov ax, word [esp + 0x1a0]
dec edx
lea ecx, [esp + 0x1c]
neg edx
sbb edx, edx
mov word [esp + 0x41], ax
and edx, 0xfffffffd
push ecx
add edx, 3
lea eax, [esp + 0x28]
mov byte [esp + 0x44], dl
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], 0xac44
mov dword [esp + 0x5b], edi
mov dword [esp + 0x57], edi
mov dword [esp + 0x5f], edi
mov dword [esp + 0x53], edi
call dword [0x47c7c4]
add esp, 0x10
cmp eax, edi
je 0x40537a
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
lea ecx, [esp + 0x54]
mov byte [esp + 0x18c], 0
call fcn.004415e0
mov dword [esp + 0x18c], ebp
jmp 0x405680
mov edx, dword [esp + 0x30]
push edx
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x20], esi
lea ecx, [eax + eax]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
cmp esi, edi
mov ebp, eax
je 0x405639
cmp ebp, edi
je 0x405628
mov esi, dword [esp + 0x1ac]
push edi
mov ecx, esi
call fcn.004303b0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
lea ecx, [edx + edx]
xor edx, edx
div ecx
mov ecx, esi
push eax
push edi
call fcn.00430370
push 1
mov ecx, esi
call fcn.004303f0
push edi
mov ecx, ebx
call fcn.004034a0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], 1
cmp eax, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
jbe 0x40550f
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
lea edi, [edx + edx]
lea edx, [edi + ecx]
cmp edx, eax
jbe 0x40541d
mov edi, eax
sub edi, ecx
mov ecx, dword [ebx]
push edi
push ebp
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, eax
mov eax, dword [esp + 0x198]
test eax, eax
je 0x40543c
push esi
push ebp
mov ecx, ebx
call fcn.00403d90
mov eax, dword [esp + 0x19c]
test eax, eax
je 0x40548b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
push ebp
push esi
push eax
call dword [0x47c7d4]
add esp, 0x14
test eax, eax
jne 0x4054d0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll__write]
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp eax, ecx
jne 0x4054de
add dword [esp + 0x10], esi
jmp 0x4054a2
push esi
push ebp
lea ecx, [esp + 0x5c]
call fcn.00441f60
cmp eax, esi
mov dword [esp + 0x14], eax
jl 0x4054fb
add dword [esp + 0x10], eax
cmp esi, edi
jl 0x40550d
mov esi, dword [esp + 0x1ac]
mov ecx, esi
call fcn.00430420
mov eax, dword [esi + 0xb0]
test eax, eax
jne 0x405505
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jb 0x405403
jmp 0x40550d
mov edx, dword [esp + 0x1c]
push edx
call dword [0x47c7c8]
add esp, 4
push 0xffffffffffffffff
push 0x40
push 0xef39
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_AfxMessageBox_1
xor edi, edi
jmp 0x4055a6
mov dword [esp + 0x18], 0
jmp 0x40550d
mov dword [esp + 0x18], 0xffffffff
xor edi, edi
cmp dword [esp + 0x19c], edi
je 0x4055bf
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push esi
push ecx
call dword [0x47c7d0]
add esp, 0xc
cmp eax, edi
je 0x405558
mov edx, dword [esp + 0x1c]
push edx
call dword [0x47c7c8]
add esp, 4
push 0xffffffffffffffff
push 0x40
push 0xef39
call sub.MFC42.DLL_AfxMessageBox_1
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x405598
push eax
mov eax, dword [esp + 0x2c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__write]
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp eax, ecx
je 0x405598
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x47c7c8]
add esp, 4
push 0xffffffffffffffff
push 0x40
push 0xef39
call sub.MFC42.DLL_AfxMessageBox_1
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x1c]
push edx
call dword [0x47c7c8]
add esp, 4
cmp dword [esp + 0x19c], edi
je 0x4055bf
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
jmp 0x4055cd
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x58]
call fcn.00441f90
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x4055de
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp ebp, edi
je 0x4055eb
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x4055fa
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x54]
mov byte [esp + 0x18c], 0
call fcn.004415e0
lea ecx, [esp + 0x194]
mov dword [esp + 0x18c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
jmp 0x40568e
mov esi, dword [esp + 0x20]
cmp esi, edi
je 0x405639
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp ebp, edi
je 0x405646
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
jmp 0x405664
push 0xffffffffffffffff
push 0x40
push 0xef3f
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0x54]
mov byte [esp + 0x18c], 0
call fcn.004415e0
mov dword [esp + 0x18c], 0xffffffff
lea ecx, [esp + 0x194]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x180
ret 0x1c