Function at 0x10001d50
Capabilities:
Access peb ldr_data
Check if file exists
Create thread
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a4c8
mov eax, dword fs:[0]
push eax
mov eax, 0x1748
call fcn.1000f030
mov eax, dword [0x1004a258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1754], edi
xor ecx, ecx
mov dword [edi + 0x44], 7
mov dword [edi + 0x40], 0
mov dword [ebp - 4], 0
mov word [edi + 0x30], cx
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], ecx
mov dword [edi + 0x50], ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x58], ecx
mov dword [edi + 0x5c], ecx
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], ecx
mov dword [edi + 0x68], ecx
lea esi, [edi + 0x407c]
push 8
mov byte [ebp - 4], 4
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
call fcn.1000c92f
add esp, 4
test eax, eax
jne 0x10001deb
call fcn.1000c3fc
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea esi, [edi + 0x4090]
push 8
mov byte [ebp - 4], 5
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.1000c92f
add esp, 4
test eax, eax
jne 0x10001e3d
call fcn.1000c3fc
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
xor eax, eax
mov dword [edi + 0x40bc], 7
mov dword [edi + 0x40b8], 0
mov word [edi + 0x40a8], ax
lea ecx, [edi + 0x40d0]
mov byte [ebp - 4], 7
mov dword [edi + 0x40d0], eax
mov dword [edi + 0x40d4], eax
call fcn.10008070
mov dword [edi + 0x40d0], eax
mov dword [edi + 0x40f4], 7
mov dword [edi + 0x40f0], 0
xor eax, eax
mov word [edi + 0x40e0], ax
mov dword [edi + 0x4120], 7
mov dword [edi + 0x411c], eax
mov word [edi + 0x410c], ax
mov dword [edi + 0x4124], eax
mov dword [edi + 0x4128], eax
mov dword [edi + 0x412c], eax
mov dword [edi + 0x4130], eax
mov dword [edi + 0x4134], eax
mov dword [edi + 0x4138], eax
mov dword [edi + 0x413c], eax
mov dword [edi + 0x4140], eax
mov dword [edi + 0x4144], eax
mov dword [edi + 0x4194], 7
mov dword [edi + 0x4190], eax
mov word [edi + 0x4180], ax
mov eax, dword [0x1004a118]
mov ecx, 0x1004a118
mov byte [ebp - 4], 0xd
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x4198], eax
xor ecx, ecx
mov dword [edi + 0x41b0], 7
mov dword [edi + 0x41ac], 0
mov word [edi + 0x419c], cx
push ecx
mov dword [edi + 0x4178], ecx
mov dword [edi + 0x417c], ecx
push 0x1003c3c0
lea ecx, [edi + 0x4198]
mov byte [ebp - 4], 0xf
call fcn.10007d80
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [edi + 0x4170], eax
mov dword [0x1006a684], 0
mov dword [edi + 0x416c], 0
mov byte [edi], 0
mov byte [edi + 0x14], 1
mov byte [0x1004c541], 0
mov dword [edi + 0x28], 0x1000000
mov word [edi + 0x24], 1
mov dword [edi + 0x40d8], 0
mov dword [edi + 0x40dc], 0
mov word [edi + 0x415c], 0
mov byte [edi + 0x415e], 0
mov byte [edi + 0x27], 0
mov dword [0x1004c554], 0
mov dword [edi + 0x4160], 0xffffffff
mov dword [edi + 0x4164], 0xffffffff
mov byte [edi + 0x2c], 0
mov dword [edi + 0x40a4], 0
lea ecx, [edi + 0x407c]
call fcn.100089e0
lea ecx, [edi + 0x4090]
call fcn.100089e0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x4000000
push 0x4000000
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 8], eax
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0xc], eax
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x10], eax
call esi
push str.GlobalPCAccelerateProScannerMutex
push 0
push 0x1f0001
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x1004c550], eax
cmp dword [0x1004c550], 0
je 0x10002089
mov byte [0x1004c542], 0
jmp 0x10002116
xorps xmm0, xmm0
push 1
lea eax, [ebp - 0x173c]
push eax
mov byte [ebp - 0x173c], 0
movq qword [ebp - 0x173b], xmm0
movq qword [ebp - 0x1733], xmm0
mov word [ebp - 0x172b], 0
mov byte [ebp - 0x1729], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x173c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xorps xmm0, xmm0
lea eax, [ebp - 0x173c]
push str.GlobalPCAccelerateProScannerMutex
movq qword [ebp - 0x1744], xmm0
mov dword [ebp - 0x1744], eax
push 0
lea eax, [ebp - 0x1748]
push eax
mov dword [ebp - 0x1748], 0xc
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x1004c550], eax
mov byte [0x1004c542], 1
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.1000f6b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [0x1006a8b8]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002151
sub ecx, edx
sar ecx, 1
dec ecx
lea eax, [ebp - 0x420]
cmp word [eax + ecx*2], 0x5c
lea eax, [eax + ecx*2]
je 0x10002189
xor edx, edx
mov word [eax], dx
lea ecx, [ecx - 1]
lea eax, [ebp - 0x420]
cmp word [eax + ecx*2], 0x5c
lea eax, [eax + ecx*2]
jne 0x10002171
cmp word [ebp - 0x420], 0
jne 0x10002197
xor ecx, ecx
jmp 0x100021af
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100021a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [edi + 0x30]
call fcn.100092e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.1000f6b0
add esp, 0xc
cmp byte [ebp + 0x20], 0
push 0
mov ecx, 0x23
mov eax, 0x1c
cmovne eax, ecx
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x1728]
push eax
call fcn.100061b0
add esp, 4
push dword [eax]
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 4], 0x10
call dword [0x1006a8bc]
mov edx, dword [ebp - 0x1728]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10002246
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x10002268
lea eax, [ebp - 0x218]
push eax
call fcn.10004b30
add esp, 4
lea eax, [ebp - 0x218]
push eax
push 0x100
push 0x1006a688
call fcn.1000d629
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x1003c810
push eax
call dword [0x1006a8bc]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x100022af
lea eax, [ebp - 0x218]
push eax
call fcn.10004b30
add esp, 4
xor eax, eax
mov dword [ebp - 0x146c], 7
mov dword [ebp - 0x1470], 0
mov word [ebp - 0x1480], ax
cmp word [0x1006a688], ax
jne 0x100022d9
xor ecx, ecx
jmp 0x100022f0
mov ecx, 0x1006a688
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100022e1
sub ecx, edx
sar ecx, 1
push ecx
push 0x1006a688
lea ecx, [ebp - 0x1480]
call fcn.100092e0
push str.RPCAPro.conf
lea eax, [ebp - 0x1480]
push eax
lea eax, [ebp - 0x1610]
push eax
mov byte [ebp - 4], 0x11
call fcn.100013b0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10002328
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [ebp - 0x15fc], 8
mov esi, eax
jb 0x1000235a
push dword [ebp - 0x1610]
call fcn.1000c900
add esp, 4
xor eax, eax
cmp dword [ebp - 0x146c], 8
mov dword [ebp - 0x15fc], 7
mov dword [ebp - 0x1600], 0
mov word [ebp - 0x1610], ax
mov byte [ebp - 4], 0xf
jb 0x10002392
push dword [ebp - 0x1480]
call fcn.1000c900
add esp, 4
xor eax, eax
mov dword [ebp - 0x146c], 7
mov dword [ebp - 0x1470], 0
mov word [ebp - 0x1480], ax
cmp esi, 0xffffffff
je 0x100026ac
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0x7ff
lea eax, [ebp - 0xc1f]
push 0
push eax
mov byte [ebp - 0xc20], 0
call fcn.1000f6b0
push str.PidFile__
lea eax, [ebp - 0xc20]
push 0x800
push eax
call fcn.1000cd2c
add esp, 0x18
push str.RPCAPro.pid
sub esp, 0x18
mov ecx, esp
push 0x1006a688
call fcn.10001ce0
lea eax, [ebp - 0x1700]
push eax
call fcn.1000ba00
add esp, 0x1c
push eax
lea eax, [ebp - 0x1640]
push eax
mov byte [ebp - 4], 0x12
call fcn.100010e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x1000243b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc20]
push 0x800
push eax
call fcn.1000cd81
add esp, 0xc
cmp dword [ebp - 0x162c], 0x10
jb 0x10002467
push dword [ebp - 0x1640]
call fcn.1000c900
add esp, 4
cmp dword [ebp - 0x16ec], 0x10
mov dword [ebp - 0x162c], 0xf
mov dword [ebp - 0x1630], 0
mov byte [ebp - 0x1640], 0
mov byte [ebp - 4], 0xf
jb 0x1000249d
push dword [ebp - 0x1700]
call fcn.1000c900
add esp, 4
push str.__r_nLogFile__
lea eax, [ebp - 0xc20]
push 0x800
push eax
mov dword [ebp - 0x16ec], 0xf
mov dword [ebp - 0x16f0], 0
mov byte [ebp - 0x1700], 0
call fcn.1000cd81
add esp, 0xc
push str.RPCAPro.log
sub esp, 0x18
mov ecx, esp
push 0x1006a688
call fcn.10001ce0
lea eax, [ebp - 0x15b0]
push eax
call fcn.1000ba00
add esp, 0x1c
push eax
lea eax, [ebp - 0x1670]
push eax
mov byte [ebp - 4], 0x13
call fcn.100010e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x10002510
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc20]
push 0x800
push eax
call fcn.1000cd81
add esp, 0xc
cmp dword [ebp - 0x165c], 0x10
jb 0x1000253c
push dword [ebp - 0x1670]
call fcn.1000c900
add esp, 4
cmp dword [ebp - 0x159c], 0x10
mov dword [ebp - 0x165c], 0xf
mov dword [ebp - 0x1660], 0
mov byte [ebp - 0x1670], 0
mov byte [ebp - 4], 0xf
jb 0x10002572
push dword [ebp - 0x15b0]
call fcn.1000c900
add esp, 4
push str.__r_nDatabaseDirectory__
lea eax, [ebp - 0xc20]
push 0x800
push eax
mov dword [ebp - 0x159c], 0xf
mov dword [ebp - 0x15a0], 0
mov byte [ebp - 0x15b0], 0
call fcn.1000cd81
add esp, 0xc
push str.database
sub esp, 0x18
mov ecx, esp
push 0x1006a688
call fcn.10001ce0
lea eax, [ebp - 0x15e0]
push eax
call fcn.1000ba00
add esp, 0x1c
push eax
lea eax, [ebp - 0x16d0]
push eax
mov byte [ebp - 4], 0x14
call fcn.100010e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x100025e5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc20]
push 0x800
push eax
call fcn.1000cd81
add esp, 0xc
cmp dword [ebp - 0x16bc], 0x10
jb 0x10002611
push dword [ebp - 0x16d0]
call fcn.1000c900
add esp, 4
cmp dword [ebp - 0x15cc], 0x10
mov dword [ebp - 0x16bc], 0xf
mov dword [ebp - 0x16c0], 0
mov byte [ebp - 0x16d0], 0
mov byte [ebp - 4], 0xf
jb 0x10002647
push dword [ebp - 0x15e0]
call fcn.1000c900
add esp, 4
push str.__r_nTCPSocket_3310_r_nTCPAddr_127.0.0.1_r_nSelfCheck_0_r_nDisableCertCheck_yes_r_nForceToDisk_no_r_nScanELF_no_r_nPhishingSignatures_no_r_nPhishingScanURLs_no_r_n
lea eax, [ebp - 0xc20]
push 0x800
push eax
mov dword [ebp - 0x15cc], 0xf
mov dword [ebp - 0x15d0], 0
mov byte [ebp - 0x15e0], 0
call fcn.1000cd81
lea ecx, [ebp - 0xc20]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002684
push 0
lea eax, [ebp - 0x174c]
push eax
sub ecx, edx
push ecx
lea eax, [ebp - 0xc20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x149c], 7
mov dword [ebp - 0x14a0], 0
mov word [ebp - 0x14b0], ax
cmp word [0x1006a688], ax
jne 0x100026d6
xor ecx, ecx
jmp 0x100026ef
mov ecx, 0x1006a688
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100026e0
sub ecx, edx
sar ecx, 1
push ecx
push 0x1006a688
lea ecx, [ebp - 0x14b0]
call fcn.100092e0
push str.PCAProUpdater.conf
lea eax, [ebp - 0x14b0]
push eax
lea eax, [ebp - 0x15f8]
push eax
mov byte [ebp - 4], 0x15
call fcn.100013b0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10002727
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [ebp - 0x15e4], 8
mov esi, eax
jb 0x10002759
push dword [ebp - 0x15f8]
call fcn.1000c900
add esp, 4
xor eax, eax
cmp dword [ebp - 0x149c], 8
mov dword [ebp - 0x15e4], 7
mov dword [ebp - 0x15e8], 0
mov word [ebp - 0x15f8], ax
mov byte [ebp - 4], 0xf
jb 0x10002791
push dword [ebp - 0x14b0]
call fcn.1000c900
add esp, 4
xor eax, eax
mov dword [ebp - 0x149c], 7
mov dword [ebp - 0x14a0], 0
mov word [ebp - 0x14b0], ax
cmp esi, 0xffffffff
je 0x10002988
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp + 0x18], 0
jne 0x100027dd
push 0x13
push str.database.clamav.net
lea ecx, [ebp + 8]
call fcn.100092e0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1628]
push str.DatabaseMirror
push eax
call fcn.100014f0
push str._r_nScriptedUpdates_yes
push eax
lea eax, [ebp - 0x15c8]
push eax
mov byte [ebp - 4], 0x16
call fcn.100013b0
lea ecx, [ebp + 8]
add esp, 0x18
mov dword [ebp - 0x171c], eax
cmp ecx, eax
je 0x1000284c
cmp dword [ebp + 0x1c], 8
jb 0x1000282f
push dword [ebp + 8]
call fcn.1000c900
mov eax, dword [ebp - 0x171c]
add esp, 4
xor ecx, ecx
mov word [ebp + 8], cx
push eax
lea ecx, [ebp + 8]
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
call fcn.10007fa0
cmp dword [ebp - 0x15b4], 8
jb 0x10002863
push dword [ebp - 0x15c8]
call fcn.1000c900
add esp, 4
xor eax, eax
cmp dword [ebp - 0x1614], 8
mov dword [ebp - 0x15b4], 7
mov dword [ebp - 0x15b8], 0
mov word [ebp - 0x15c8], ax
mov byte [ebp - 4], 0xf
jb 0x1000289b
push dword [ebp - 0x1628]
call fcn.1000c900
add esp, 4
xor eax, eax
push 0x7ff
push eax
mov word [ebp - 0x1628], ax
mov byte [ebp - 0x1420], al
lea eax, [ebp - 0x141f]
push eax
mov dword [ebp - 0x1614], 7
mov dword [ebp - 0x1618], 0
call fcn.1000f6b0
sub esp, 0xc
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.100091c0
lea eax, [ebp - 0x1658]
push eax
call fcn.1000ba00
add esp, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x1000290b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x1420]
push 0x800
push eax
call fcn.1000cd81
add esp, 0xc
cmp dword [ebp - 0x1644], 0x10
jb 0x10002937
push dword [ebp - 0x1658]
call fcn.1000c900
add esp, 4
lea ecx, [ebp - 0x1420]
mov dword [ebp - 0x1644], 0xf
mov dword [ebp - 0x1648], 0
mov byte [ebp - 0x1658], 0
lea edx, [ecx + 1]
jmp 0x10002960
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002960
push 0
lea eax, [ebp - 0x1750]
push eax
sub ecx, edx
push ecx
lea eax, [ebp - 0x1420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1003c3ce
push 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
call fcn.1000e3d5
xor eax, eax
add esp, 8
mov word [ebp - 0x14d8], ax
mov dword [ebp - 0x14ce], eax
mov word [ebp - 0x14ca], ax
mov dword [ebp - 0x1724], eax
mov dword [ebp - 0x1720], eax
lea eax, [ebp - 0x14d8]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x14d6], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x1724]
push eax
lea eax, [ebp - 0x14d8]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [ebp - 0x1720]
xor eax, eax
or eax, dword [ebp - 0x1724]
and ecx, 0x7fffffff
mov dword [edi + 0x70], eax
push 3
mov dword [edi + 0x74], ecx
xor eax, eax
push 0x1003c9d0
lea ecx, [ebp - 0x1468]
mov dword [ebp - 0x1454], 7
mov dword [ebp - 0x1458], 0
mov word [ebp - 0x1468], ax
call fcn.100092e0
lea eax, [ebp - 0x1468]
push eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 0x17
call fcn.1000b0e0
cmp dword [ebp - 0x1454], 8
mov byte [ebp - 4], 0xf
jb 0x10002a6a
push dword [ebp - 0x1468]
call fcn.1000c900
add esp, 4
xor eax, eax
push 3
push 0x1003c9d8
lea ecx, [ebp - 0x1438]
mov dword [ebp - 0x1454], 7
mov dword [ebp - 0x1458], 0
mov word [ebp - 0x1468], ax
mov dword [ebp - 0x1424], 7
mov dword [ebp - 0x1428], eax
mov word [ebp - 0x1438], ax
call fcn.100092e0
lea eax, [ebp - 0x1438]
push eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 0x18
call fcn.1000b0e0
cmp dword [ebp - 0x1424], 8
mov byte [ebp - 4], 0xf
jb 0x10002ade
push dword [ebp - 0x1438]
call fcn.1000c900
add esp, 4
xor eax, eax
push 3
push 0x1003c9e0
lea ecx, [ebp - 0x1498]
mov dword [ebp - 0x1424], 7
mov dword [ebp - 0x1428], 0
mov word [ebp - 0x1438], ax
mov dword [ebp - 0x1484], 7
mov dword [ebp - 0x1488], eax
mov word [ebp - 0x1498], ax
call fcn.100092e0
lea eax, [ebp - 0x1498]
push eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 0x19
call fcn.1000b0e0
cmp dword [ebp - 0x1484], 8
mov byte [ebp - 4], 0xf
jb 0x10002b52
push dword [ebp - 0x1498]
call fcn.1000c900
add esp, 4
xor eax, eax
push 3
push 0x1003c9e8
lea ecx, [ebp - 0x1450]
mov dword [ebp - 0x1484], 7
mov dword [ebp - 0x1488], 0
mov word [ebp - 0x1498], ax
mov dword [ebp - 0x143c], 7
mov dword [ebp - 0x1440], eax
mov word [ebp - 0x1450], ax
call fcn.100092e0
lea eax, [ebp - 0x1450]
push eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 0x1a
call fcn.1000b0e0
cmp dword [ebp - 0x143c], 8
mov byte [ebp - 4], 0xf
jb 0x10002bc6
push dword [ebp - 0x1450]
call fcn.1000c900
add esp, 4
xor eax, eax
push 0x1003c9f0
lea ecx, [ebp - 0x1580]
mov dword [ebp - 0x143c], 7
mov dword [ebp - 0x1440], 0
mov word [ebp - 0x1450], ax
call fcn.10001ce0
lea eax, [ebp - 0x1580]
push eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 0x1b
call fcn.1000b0e0
cmp dword [ebp - 0x156c], 8
mov byte [ebp - 4], 0xf
jb 0x10002c21
push dword [ebp - 0x1580]
call fcn.1000c900
add esp, 4
xor eax, eax
push 0x1003c9f8
lea ecx, [ebp - 0x1550]
mov dword [ebp - 0x156c], 7
mov dword [ebp - 0x1570], 0
mov word [ebp - 0x1580], ax
call fcn.10001ce0
lea eax, [ebp - 0x1550]
push eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 0x1c
call fcn.1000b0e0
cmp dword [ebp - 0x153c], 8
mov byte [ebp - 4], 0xf
jb 0x10002c7c
push dword [ebp - 0x1550]
call fcn.1000c900
add esp, 4
xor eax, eax
push 0x1003ca00
lea ecx, [ebp - 0x1508]
mov dword [ebp - 0x153c], 7
mov dword [ebp - 0x1540], 0
mov word [ebp - 0x1550], ax
call fcn.10001ce0
lea eax, [ebp - 0x1508]
push eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 0x1d
call fcn.1000b0e0
cmp dword [ebp - 0x14f4], 8
mov byte [ebp - 4], 0xf
jb 0x10002cd7
push dword [ebp - 0x1508]
call fcn.1000c900
add esp, 4
xor eax, eax
push 0x1003ca08
lea ecx, [ebp - 0x1538]
mov dword [ebp - 0x14f4], 7
mov dword [ebp - 0x14f8], 0
mov word [ebp - 0x1508], ax
call fcn.10001ce0
lea eax, [ebp - 0x1538]
push eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 0x1e
call fcn.1000b0e0
cmp dword [ebp - 0x1524], 8
mov byte [ebp - 4], 0xf
jb 0x10002d32
push dword [ebp - 0x1538]
call fcn.1000c900
add esp, 4
xor eax, eax
push 0x1003ca10
lea ecx, [ebp - 0x1568]
mov dword [ebp - 0x1524], 7
mov dword [ebp - 0x1528], 0
mov word [ebp - 0x1538], ax
call fcn.10001ce0
lea eax, [ebp - 0x1568]
push eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 0x1f
call fcn.1000b0e0
cmp dword [ebp - 0x1554], 8
mov byte [ebp - 4], 0xf
jb 0x10002d8d
push dword [ebp - 0x1568]
call fcn.1000c900
add esp, 4
xor eax, eax
push 0x1003ca18
lea ecx, [ebp - 0x14f0]
mov dword [ebp - 0x1554], 7
mov dword [ebp - 0x1558], 0
mov word [ebp - 0x1568], ax
call fcn.10001ce0
lea eax, [ebp - 0x14f0]
push eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 0x20
call fcn.1000b0e0
cmp dword [ebp - 0x14dc], 8
mov byte [ebp - 4], 0xf
jb 0x10002de8
push dword [ebp - 0x14f0]
call fcn.1000c900
add esp, 4
xor eax, eax
push 0x1003ca20
lea ecx, [ebp - 0x1598]
mov dword [ebp - 0x14dc], 7
mov dword [ebp - 0x14e0], 0
mov word [ebp - 0x14f0], ax
call fcn.10001ce0
lea eax, [ebp - 0x1598]
push eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 0x21
call fcn.1000b0e0
cmp dword [ebp - 0x1584], 8
mov byte [ebp - 4], 0xf
jb 0x10002e43
push dword [ebp - 0x1598]
call fcn.1000c900
add esp, 4
xor eax, eax
push 0x1003ca28
lea ecx, [ebp - 0x1520]
mov dword [ebp - 0x1584], 7
mov dword [ebp - 0x1588], 0
mov word [ebp - 0x1598], ax
call fcn.10001ce0
lea eax, [ebp - 0x1520]
push eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 0x22
call fcn.1000b0e0
cmp dword [ebp - 0x150c], 8
mov byte [ebp - 4], 0xf
jb 0x10002e9e
push dword [ebp - 0x1520]
call fcn.1000c900
add esp, 4
xor eax, eax
push 0x1006a688
lea ecx, [ebp - 0x1688]
mov dword [ebp - 0x150c], 7
mov dword [ebp - 0x1510], 0
mov word [ebp - 0x1520], ax
call fcn.10001ce0
push str.databasemain.cvd
push eax
lea eax, [ebp - 0x14c8]
push eax
mov byte [ebp - 4], 0x23
call fcn.100013b0
add esp, 0xc
cmp dword [ebp - 0x1674], 8
mov byte [ebp - 4], 0x25
jb 0x10002eff
push dword [ebp - 0x1688]
call fcn.1000c900
add esp, 4
xor eax, eax
cmp dword [ebp - 0x14b4], 8
mov word [ebp - 0x1688], ax
lea eax, [ebp - 0x14c8]
cmovae eax, dword [ebp - 0x14c8]
push eax
mov dword [ebp - 0x1674], 7
mov dword [ebp - 0x1678], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10002f88
cmp dword [ebp - 0x14b4], 8
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp - 0x14c8]
cmovae eax, dword [ebp - 0x14c8]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002f88
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x10002f7f
mov byte [edi + 0x2b], al
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002f8c
mov byte [edi + 0x2b], 0
cmp byte [edi + 0x2b], 0
je 0x10002f99
mov ecx, edi
call fcn.10005e80
push 0x1006a688
lea ecx, [ebp - 0x16e8]
call fcn.10001ce0
push str.RPCAPro.tm
push eax
lea eax, [ebp - 0x16b8]
push eax
mov byte [ebp - 4], 0x26
call fcn.100013b0
mov esi, eax
lea ebx, [edi + 0x4180]
add esp, 0xc
cmp ebx, esi
je 0x10002ff9
cmp dword [ebx + 0x14], 8
jb 0x10002fde
push dword [ebx]
call fcn.1000c900
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push esi
mov ecx, ebx
mov word [ebx], ax
call fcn.10007fa0
cmp dword [ebp - 0x16a4], 8
jb 0x10003010
push dword [ebp - 0x16b8]
call fcn.1000c900
add esp, 4
xor eax, eax
cmp dword [ebp - 0x16d4], 8
mov dword [ebp - 0x16a4], 7
mov dword [ebp - 0x16a8], 0
mov word [ebp - 0x16b8], ax
mov byte [ebp - 4], 0x25
jb 0x10003048
push dword [ebp - 0x16e8]
call fcn.1000c900
add esp, 4
xor eax, eax
push 0x1006a688
lea ecx, [ebp - 0x16a0]
mov dword [ebp - 0x16d4], 7
mov dword [ebp - 0x16d8], 0
mov word [ebp - 0x16e8], ax
call fcn.10001ce0
push str.RPCAProCheck.tm
push eax
lea eax, [ebp - 0x1718]
push eax
mov byte [ebp - 4], 0x27
call fcn.100013b0
add esp, 0xc
lea ecx, [edi + 0x419c]
push eax
call fcn.10003a50
cmp dword [ebp - 0x1704], 8
jb 0x100030b1
push dword [ebp - 0x1718]
call fcn.1000c900
add esp, 4
xor eax, eax
cmp dword [ebp - 0x168c], 8
mov dword [ebp - 0x1704], 7
mov dword [ebp - 0x1708], 0
mov word [ebp - 0x1718], ax
mov byte [ebp - 4], 0x25
jb 0x100030e9
push dword [ebp - 0x16a0]
call fcn.1000c900
add esp, 4
xor eax, eax
mov dword [ebp - 0x168c], 7
mov dword [ebp - 0x1690], 0
mov word [ebp - 0x16a0], ax
call fcn.10003f40
test eax, eax
setg al
cmp dword [0x1004c544], 0
jne 0x10003138
test al, al
jne 0x10003138
push 0
push 0
push edi
push 0x10009400
push 0
push 0
call fcn.1000e0e3
add esp, 0x18
mov dword [0x1004c544], eax
cmp byte [edi + 0x2b], 0
jne 0x10003160
cmp dword [0x1004c54c], 0
jne 0x10003160
push 0x7d0
mov byte [0x1004c542], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.10007eb0
cmp dword [ebp - 0x14b4], 8
jb 0x10003177
push dword [ebp - 0x14c8]
call fcn.1000c900
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x10003188
push dword [ebp + 8]
call fcn.1000c900
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000eb31
mov esp, ebp
pop ebp
ret 0x1c