Function at 0x407780
Capabilities:
Delete file
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40f758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x80], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], 1
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x68], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 4
call fcn.00404c60
mov dword [esp + 0x64], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 0xc
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x88]
mov byte [esp + 0x80], 0xd
cmp esi, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], ebx
je 0x407cbe
mov edi, dword [esp + 0x8c]
cmp edi, ebx
je 0x407cbe
mov ebp, dword [esp + 0x90]
cmp ebp, ebx
je 0x407cbe
push esi
lea ecx, [esp + 0x40]
call fcn.00404ce0
test al, al
push esi
jne 0x4078ee
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x413b14
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x14], 0xffff0002
jmp 0x407cdf
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.Config
lea ecx, [esp + 0x40]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x5c], ebx
call fcn.00404e20
test al, al
jne 0x407924
push 0x413af4
jmp 0x407c21
lea ecx, [esp + 0x3c]
call fcn.00405130
push str.Driver
lea ecx, [esp + 0x40]
call fcn.00404e20
test al, al
jne 0x407965
push 0x413ad4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x14], 0xffff0003
jmp 0x407cdf
lea eax, [esp + 0x88]
lea ecx, [esp + 0x3c]
push eax
call fcn.004082f0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x84], 0xe
call fcn.0040eb54
lea ecx, [esp + 0x88]
mov byte [esp + 0x80], 0xd
call fcn.0040ea52
push 0x413ce8
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x88]
push str.enable
push ecx
lea ecx, [esp + 0x44]
call fcn.00408310
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 0xf
call fcn.0040eb54
lea ecx, [esp + 0x88]
mov byte [esp + 0x80], 0xd
call fcn.0040ea52
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.true
push edx
call esi
add esp, 8
test eax, eax
jne 0x407a09
mov byte [esp + 0x88], 1
jmp 0x407a27
mov eax, dword [esp + 0x18]
push str.false
push eax
call esi
add esp, 8
test eax, eax
jne 0x407c9b
mov byte [esp + 0x88], bl
lea ecx, [esp + 0x3c]
call fcn.00405130
push str.Latest
lea ecx, [esp + 0x40]
call fcn.00404e20
test al, al
jne 0x407a4c
push 0x413a9c
jmp 0x407c21
push 0x413a98
lea ecx, [esp + 0x40]
call fcn.00404e90
test al, al
jne 0x407a68
push 0x413a84
jmp 0x407944
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x3c]
push eax
call fcn.004082d0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 0x10
call fcn.0040eb54
lea ecx, [esp + 0x8c]
mov byte [esp + 0x80], 0xd
call fcn.0040ea52
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 8]
cmp eax, ebx
jle 0x407c91
cmp eax, 0xa
jg 0x407c91
lea edx, [esp + 0x2c]
lea eax, [esp + 0x24]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x94], esp
push eax
mov dword [esp + 0x38], ebx
call sub.MFC42.DLL_CString::CString_2
call fcn.00406f20
add esp, 8
cmp eax, ebx
jne 0x407aea
push 0x413a70
jmp 0x407c21
push 0x413a6c
lea ecx, [esp + 0x40]
call fcn.00404e90
test al, al
jne 0x407b06
push 0x413a58
jmp 0x407944
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x3c]
push eax
call fcn.004082d0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 0x11
call fcn.0040eb54
lea ecx, [esp + 0x8c]
mov byte [esp + 0x80], 0xd
call fcn.0040ea52
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 8], ebx
jg 0x407b50
push str.url
jmp 0x407944
push str.hash
lea ecx, [esp + 0x40]
call fcn.00404e90
test al, al
jne 0x407b6c
push 0x413a30
jmp 0x407ca0
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x40]
call fcn.004082d0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 0x12
call fcn.0040eb54
lea ecx, [esp + 0x8c]
mov byte [esp + 0x80], 0xd
call fcn.0040ea52
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
cmp eax, 0x28
je 0x407bb9
push 0x413a1c
jmp 0x407ca0
lea ecx, [esp + 0x3c]
call fcn.00405170
push str.signature
lea ecx, [esp + 0x40]
call fcn.00404e20
test al, al
jne 0x407bdb
push 0x4139f4
jmp 0x407c21
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x3c]
push edx
call fcn.004082b0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], 0x13
call fcn.0040eb54
lea ecx, [esp + 0x8c]
mov byte [esp + 0x80], 0xd
call fcn.0040ea52
mov eax, dword [esp + 0x28]
cmp dword [eax - 8], 0x28
je 0x407c42
push 0x4139e0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x14], 0xffff0003
jmp 0x407cdf
mov edx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0x88]
lea edx, [edi + 0x40d]
push ecx
push edx
mov byte [edi], al
call esi
mov eax, dword [esp + 0x20]
lea ecx, [edi + 0xc]
push eax
push ecx
call esi
mov edx, dword [esp + 0x28]
lea eax, [edi + 0x50d]
push edx
push eax
call esi
call fcn.00407710
mov ecx, dword [esp + 0x2c]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
jmp 0x407cdf
push 0x4139cc
jmp 0x407944
push 0x4139b4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x14], 0xffff0003
jmp 0x407cdf
push 0x4139a8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x14], 0xffff0001
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 0xc
call fcn.0040ea52
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 0xb
call fcn.0040ea52
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 0xa
call fcn.0040ea52
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 9
call fcn.0040ea52
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 8
call fcn.0040ea52
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 7
call fcn.0040ea52
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 6
call fcn.0040ea52
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 5
call fcn.0040ea52
mov edx, dword [esp + 0x70]
xor esi, esi
dec edx
mov byte [esp + 0x80], 0x16
sar edx, 0x10
inc edx
test edx, edx
jle 0x407d9c
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + esi*4]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x74]
add esp, 4
inc esi
dec ecx
sar ecx, 0x10
inc ecx
cmp esi, ecx
jl 0x407d7e
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x407dad
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x68]
mov byte [esp + 0x80], 0x15
cmp ecx, ebx
je 0x407df8
xor edi, edi
mov eax, dword [edi + ecx]
cmp eax, ebx
je 0x407de7
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x406e90
push edx
push 0xc
push eax
call fcn.0040ed48
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x6c]
add esp, 4
add edi, 4
cmp edi, 0x1c
jl 0x407dbf
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], ebx
mov byte [esp + 0x80], 0x14
call fcn.0040ea52
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], bl
call fcn.0040ea52
lea ecx, [esp + 0x38]
mov dword [esp + 0x80], 0xffffffff
call fcn.0040ea52
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x74
ret