Function at 0x49bc55
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows

Disassembly:
sub esp, 0x58c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x5584a8
push reloc.WS2_32.dll_accept
mov edi, ecx
mov byte [esp + 0x27], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0x5dea5c
test eax, eax
jne 0x49bcd0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x400
push eax
lea eax, [esp + 0x19c]
push eax
push ebx
push ebx
push str.contactsPathToFile
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49bcd0
lea eax, [esp + 0x198]
mov byte [esp + 0x13], 1
push eax
mov ecx, esi
call fcn.0043c2b9
mov ecx, edi
call fcn.0049b8f2
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x13], bl
jne 0x49bce8
push ecx
mov ecx, edi
call fcn.0049bbc9
push ebx
push 0x80
push 3
push ebx
xor eax, eax
mov dword [esp + 0xc4], ebx
cmp dword [0x5dea70], 8
push 1
cmovae esi, dword [0x5dea5c]
push accept
push esi
mov dword [esp + 0xd4], 7
mov word [esp + 0xc0], ax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x49c13e
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esp + 0xa4]
cdq
sub eax, edx
push ebx
sar eax, 1
push eax
call fcn.0043a38c
cmp dword [esp + 0xb8], 8
lea ecx, [esp + 0xbc]
push ebx
push ecx
lea eax, [esp + 0xac]
cmovae eax, dword [esp + 0xac]
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
mov dword [esp + 0x64], ebx
mov edx, 0x54df48
mov dword [esp + 0x68], ebx
mov ecx, esp
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call fcn.0043df19
lea edx, [esp + 0xbc]
lea ecx, [esp + 0x4c]
call fcn.0043df52
mov eax, dword [esp + 0x50]
add esp, 0x18
mov esi, dword [esp + 0x34]
sub eax, esi
cdq
push 0x18
pop ecx
idiv ecx
cmp eax, 6
jb 0x49c11a
sub esp, 0x18
mov ebp, 0x55a7a0
mov edx, ebp
mov ecx, esp
call fcn.0043df19
lea edx, [esi + 0x18]
lea ecx, [esp + 0x74]
call fcn.0043df52
mov esi, dword [esp + 0x4c]
mov edx, ebp
mov ecx, esp
call fcn.0043df19
lea edx, [esi + 0x78]
lea ecx, [esp + 0x64]
call fcn.0043df52
mov esi, dword [esp + 0x4c]
mov edx, ebp
mov ecx, esp
call fcn.0043df19
lea edx, [esi + 0x90]
lea ecx, [esp + 0x58]
call fcn.0043df52
add esp, 0x18
lea esi, [edi + 0x2800]
mov dword [esp + 0x58], esi
push dword [esi + 4]
push dword [esi]
call fcn.0049fd37
mov eax, dword [esi]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
sub eax, esi
push 0x18
cdq
pop edi
idiv edi
cmp eax, 1
jb 0x49c11a
mov dword [esp + 0x14], ebx
sub eax, 1
je 0x49c118
mov ecx, ebx
mov dword [esp + 0x24], ebx
push 7
pop edx
sub esp, 0x18
mov dword [esp + 0x94], edx
xor eax, eax
mov dword [esp + 0xac], edx
add esi, ecx
mov dword [esp + 0x90], ebx
mov edx, 0x55a748
mov word [esp + 0x80], ax
mov ecx, esp
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], ax
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.0043df19
mov edx, esi
lea ecx, [esp + 0x40]
call fcn.0043df52
mov eax, dword [esp + 0x44]
add esp, 0x18
mov ecx, dword [esp + 0x28]
sub eax, ecx
cdq
push 0x18
pop esi
idiv esi
cmp eax, 2
jb 0x49c160
lea eax, [ecx + 0x18]
push eax
lea ecx, [esp + 0x6c]
call fcn.0043a3bc
push dword [esp + 0x28]
lea ecx, [esp + 0x84]
call fcn.0043a3bc
mov eax, dword [esp + 0x44]
mov ebp, ebx
mov ecx, dword [esp + 0x40]
sub eax, ecx
cdq
idiv esi
sub eax, 1
je 0x49c0b4
mov edi, ebx
sub esp, 0x18
mov dword [esp + 0x30], ebx
lea esi, [edi + ecx]
mov dword [esp + 0x34], ebx
mov edx, 0x55a748
mov dword [esp + 0x38], ebx
mov ecx, esp
call fcn.0043df19
mov edx, esi
lea ecx, [esp + 0x30]
call fcn.0043df52
mov eax, dword [esp + 0x34]
add esp, 0x18
mov ecx, dword [esp + 0x18]
sub eax, ecx
cdq
push 0x18
pop esi
idiv esi
cmp eax, 9
jb 0x49c157
cmp dword [esp + 0x7c], 8
lea eax, [ecx + 0x48]
lea ecx, [esp + 0x68]
mov edx, eax
cmovae ecx, dword [esp + 0x68]
cmp dword [eax + 0x14], 8
jb 0x49bfa7
mov edx, dword [eax]
mov eax, dword [eax + 0x10]
cmp eax, dword [esp + 0x78]
jne 0x49bfc1
push eax
push ecx
push edx
call fcn.0043461b
add esp, 0xc
test eax, eax
mov al, 1
je 0x49bfc3
mov al, bl
test al, al
je 0x49c092
lea ecx, [esp + 0xc0]
call fcn.0049c18c
push dword [esp + 0x18]
call fcn.0043a3bc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xd8]
add eax, 0x18
push eax
call fcn.0043a3bc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xf0]
add eax, 0x30
push eax
call fcn.0043a3bc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x120]
add eax, 0x60
push eax
call fcn.0043a3bc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x138]
add eax, 0x78
push eax
call fcn.0043a3bc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x150]
add eax, 0x90
push eax
call fcn.0043a3bc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x168]
add eax, 0xa8
push eax
call fcn.0043a3bc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x180]
add eax, 0xc0
push eax
call fcn.0043a3bc
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x9c]
call fcn.0049fbc6
lea ecx, [esp + 0xc0]
call fcn.0049c212
lea ecx, [esp + 0x18]
call fcn.0043bc40
mov eax, dword [esp + 0x44]
inc ebp
mov ecx, dword [esp + 0x40]
add edi, esi
sub eax, ecx
cdq
idiv esi
dec eax
cmp ebp, eax
jb 0x49bf47
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x68]
push eax
call fcn.0049fa31
lea ecx, [esp + 0x28]
call fcn.0043bc40
lea ecx, [esp + 0x98]
call fcn.0049fd7f
lea ecx, [esp + 0x80]
call fcn.0043c274
lea ecx, [esp + 0x68]
call fcn.0043c274
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x50]
add ecx, esi
mov esi, dword [esp + 0x4c]
sub eax, esi
push 0x18
cdq
pop edi
idiv edi
mov ebp, dword [esp + 0x14]
inc ebp
mov dword [esp + 0x24], ecx
dec eax
mov dword [esp + 0x14], ebp
cmp ebp, eax
jb 0x49be86
mov bl, 1
lea ecx, [esp + 0x5c]
call fcn.0043bc40
lea ecx, [esp + 0x34]
call fcn.0043bc40
lea ecx, [esp + 0x40]
call fcn.0043bc40
lea ecx, [esp + 0x4c]
call fcn.0043bc40
lea ecx, [esp + 0xa4]
call fcn.0043c274
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x58c
ret
lea ecx, [esp + 0x18]
call fcn.0043bc40
lea ecx, [esp + 0x28]
call fcn.0043bc40
lea ecx, [esp + 0x98]
call fcn.0049fd7f
lea ecx, [esp + 0x80]
call fcn.0043c274
lea ecx, [esp + 0x68]
call fcn.0043c274
jmp 0x49c11a