Function at 0x40bc6a
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push 0x2b4
mov eax, 0x486a44
call fcn.0044465a
and dword [ebp - 0x284], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x256]
mov esi, ecx
push eax
mov dword [ebp - 0x27c], esi
call fcn.00444cd0
add esp, 0xc
lea ebx, [ebp - 0x258]
call fcn.0040b7bd
test eax, eax
jne 0x40bcc8
push 0x48e56b
mov ecx, esi
call fcn.0040344e
mov eax, esi
jmp 0x40bfe1
push 0x3f
xor esi, esi
lea eax, [ebp - 0x4f]
push esi
push eax
mov byte [ebp - 0x50], 0
call fcn.00444cd0
add esp, 0xc
push esi
push esi
push 3
push esi
push esi
push closesocket
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x280], edi
mov dword [ebp - 4], esi
mov ebx, 0x48f4e4
cmp edi, esi
je 0x40be8f
cmp edi, 0xffffffff
je 0x40be8f
push esi
lea eax, [ebp - 0x288]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x10
jne 0x40bdf4
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2a4]
call fcn.0040344e
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 1
call fcn.004011db
cmp dword [eax + 0x18], 8
pop ecx
jb 0x40bd6f
mov esi, dword [eax + 4]
jmp 0x40bd72
lea esi, [eax + 4]
mov ebx, 0x48f4e4
mov edi, 0x48eff0
call fcn.0041dca5
xor edi, edi
push edi
push 1
lea esi, [ebp - 0x2c0]
call fcn.00403d0d
push edi
push 1
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 0
call fcn.00403c15
lea eax, [ebp - 0x2c0]
push eax
mov edx, ebx
mov ecx, 0x48eff0
call fcn.0041dd22
mov ebx, dword [eax + 0x14]
pop ecx
push edi
push 1
lea esi, [ebp - 0x2c0]
call fcn.00403d0d
cmp ebx, 0x10
je 0x40bdee
push str.read_cid_from_reg_failed
call fcn.0041fc97
mov dword [esp], 0x48e56b
mov ecx, dword [ebp - 0x27c]
call fcn.0040344e
jmp 0x40bfd0
lea eax, [ebp - 0x50]
push eax
jmp 0x40bdde
push str.read_cid_file_failed
call fcn.0041fc97
or dword [ebp - 0x280], 0xffffffff
pop ecx
cmp edi, 0xffffffff
je 0x40be16
cmp edi, esi
je 0x40be16
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x274]
push eax
mov edx, ebx
mov ecx, 0x48eff0
call fcn.0041dd22
pop ecx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x260], 0x10
jne 0x40be7f
cmp dword [ebp - 0x25c], 8
mov eax, dword [ebp - 0x270]
jae 0x40be4c
lea eax, [ebp - 0x270]
push eax
push str.get_cid_from_registry______________s
call fcn.0041fa04
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x27c]
call fcn.0040125c
add esp, 0x10
push esi
push 1
lea esi, [ebp - 0x274]
call fcn.00403d0d
jmp 0x40bfd0
push esi
push 1
lea esi, [ebp - 0x274]
call fcn.00403d0d
xor esi, esi
lea edi, [ebp - 0x258]
call fcn.0041b9e3
push esi
push esi
push 2
push esi
push esi
push 0x40000000
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x284], edi
mov byte [ebp - 4], 3
cmp edi, esi
je 0x40bfaa
cmp edi, 0xffffffff
je 0x40bfaa
lea edx, [ebp - 0x275]
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x275], 0
call fcn.0040b9f4
push esi
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bfa3
cmp dword [ebp - 0x288], 0x10
jne 0x40bfa3
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2a4]
call fcn.0040344e
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 4
call fcn.004011db
cmp dword [eax + 0x18], 8
pop ecx
jb 0x40bf44
mov esi, dword [eax + 4]
jmp 0x40bf47
lea esi, [eax + 4]
mov edi, 0x48eff0
call fcn.0041dca5
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x2c0]
mov edi, eax
call fcn.00403d0d
push ebx
push 1
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 3
call fcn.00403c15
cmp edi, ebx
je 0x40bf8f
cmp byte [ebp - 0x275], bl
jne 0x40bf89
lea esi, [ebp - 0x50]
call fcn.0040b916
lea eax, [ebp - 0x50]
push eax
jmp 0x40bfba
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.write_cid_to_reg_failed
jmp 0x40bfaf
push str.write_cid_to_file_failed
jmp 0x40bfaf
push str.open_cid_file_failed
call fcn.0041fc97
pop ecx
push 0x48e56b
mov ecx, dword [ebp - 0x27c]
call fcn.0040344e
lea eax, [ebp - 0x284]
call fcn.00407285
lea eax, [ebp - 0x280]
call fcn.00407285
mov eax, dword [ebp - 0x27c]
call fcn.004446dd
ret