Function at 0x4c6520
Capabilities:
Create process on windows
Set current directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bed0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
test edi, edi
je 0x4c6f19
cmp byte [esi + 0x282c], 0
jne 0x4c6f19
lea eax, [ebp - 0x50]
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
sub eax, ecx
mov dword [0x618c20], eax
mov eax, dword [ebp - 0x44]
sub eax, edx
mov dword [0x6c557c], edx
mov dword [0x618c1c], eax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
mov dword [0x6c5578], ecx
sub eax, 0
je 0x4c65bc
sub eax, 1
je 0x4c65bc
sub eax, 0x3ff
jne 0x4c6f19
sub esp, 8
lea eax, [esi + 0x2834]
mov ecx, esi
push eax
call fcn.004c5a80
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c65d0
mov eax, dword [eax]
push ebx
push 0x16
push str.contacts_btn_find_next
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
je 0x4c6601
sub esp, 8
lea eax, [esi + 0x2834]
mov ecx, esi
push eax
call fcn.004c5a80
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c6615
mov eax, dword [eax]
push 0x13
push str.contacts_btn_cancel
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
jne 0x4c6667
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c6648
mov eax, dword [eax]
push 0xf
push str.contacts_btn_ok
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
je 0x4c6683
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c6697
mov eax, dword [eax]
push 0x10
push str.contacts_btn_add
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
je 0x4c66de
push 0x128
mov dword [0x6c5574], 0
call fcn.005838a8
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [ebp - 4], 0
jmp 0x4c678c
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c66f2
mov eax, dword [eax]
push 0x11
push str.contacts_btn_edit
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
je 0x4c6736
push 0x128
mov dword [0x6c5574], 1
call fcn.005838a8
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [ebp - 4], 1
jmp 0x4c678c
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c674a
mov eax, dword [eax]
push 0x13
push str.contacts_btn_delete
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
je 0x4c67b9
push 0x128
mov dword [0x6c5574], 2
call fcn.005838a8
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [ebp - 4], 2
mov esi, dword [esi + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [ebp - 0x10]
mov ecx, edi
push 0
push ebx
push esi
push eax
call fcn.004c8a10
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c67cd
mov eax, dword [eax]
push 0x18
push str.contacts_btn_open_folder
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
je 0x4c68c1
push str.contacts.csv
lea ecx, [ebp - 0x40]
call fcn.00446ee0
push ecx
mov edi, 0x6ad104
mov dword [ebp - 4], 3
push str.contacts.csv
mov ecx, edi
call fcn.004cb3a0
dec eax
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.004cb330
push eax
lea ecx, [ebp - 0x40]
call fcn.00446db0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4c6868
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c685e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6f2b
push ecx
push edx
call fcn.00583877
add esp, 8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 1
cmovae eax, dword [ebp - 0x40]
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4c6f18
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c6d2d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6f30
jmp 0x4c6d2d
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c68d5
mov eax, dword [eax]
push 0x18
push str.contacts_btn_home_folder
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
je 0x4c6939
push 0xd0
call fcn.005838a8
add esp, 4
mov dword [ebp + 8], eax
push str.contacts_switch_to_home_btn_no
push str.contacts_switch_to_home_btn_yes
push str.contacts_switch_to_home_folder_txt
push ecx
push esi
mov dword [ebp - 4], 4
mov ecx, eax
push dword [esi + 0x10]
call fcn.00497cd0
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c694d
mov eax, dword [eax]
push 0x1f
push str.contacts_switch_to_home_btn_yes
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
je 0x4c6a28
push 0
lea eax, [ebp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREAeroAdmin
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4c6a0f
cmp dword [0x6ad100], 8
mov edi, 0x6ad104
push 0x102
jb 0x4c69c3
push dword [0x6ad0ec]
push 1
push eax
push str.contactsPathToFile
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4c69e2
push 0x6ad0ec
push 1
push 0
push str.contactsPathToFile
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp edi, 0x6ad0ec
je 0x4c6a03
cmp dword [0x6ad100], 8
mov eax, 0x6ad0ec
push dword [0x6ad0fc]
cmovae eax, dword [0x6ad0ec]
mov ecx, edi
push eax
call fcn.004496e0
mov ecx, esi
call fcn.004c30b0
jmp 0x4c6ef7
push 0
push 0x5dd908
push str.Cant_set_default_path_to_registry
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4c6ef7
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c6a3c
mov eax, dword [eax]
push 0x13
push str.contacts_btn_folder
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
je 0x4c6d4a
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
call fcn.00438270
mov esi, eax
call fcn.00531180
cmp dword [eax + 0x14], 0x10
jb 0x4c6a8d
mov eax, dword [eax]
push str.contacts_choose_folder_txt
push eax
mov ecx, esi
call fcn.0052fc30
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
test esi, esi
je 0x4c6f18
lea eax, [ebp - 0x290]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x4c6af4
mov ecx, dword [ebp + 8]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x28]
call fcn.00446ee0
mov dword [ebp - 4], 5
cmp dword [ebp - 0x18], 3
jbe 0x4c6b33
lea edi, [ebp - 0x290]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4c6b20
mov eax, dword [0x5ed894]
mov dword [edi], eax
lea edi, [ebp - 0x290]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4c6b40
mov ecx, 6
lea eax, [ebp - 0x290]
mov esi, str.contacts.csv
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
mov edi, 0x6ad104
mov ecx, edi
call fcn.00446d50
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x40]
call fcn.00446ee0
push 0
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 6
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREAeroAdmin
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4c6c32
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0x102
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 0
push str.contactsPathToFile
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
mov ecx, edi
push eax
call fcn.004496e0
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.004c30b0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4c6c87
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c6c26
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6f35
push ecx
push edx
call fcn.00583877
add esp, 8
jmp 0x4c6c87
push 0
push 0x5dd908
push str.Cant_set_new_path_to_registry
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4c6c84
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c6c7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6f35
push ecx
push edx
call fcn.00583877
add esp, 8
mov ebx, dword [ebp - 0x10]
cmp dword [0x6ad118], 8
mov eax, 0x6ad104
push 0
cmovae eax, dword [0x6ad104]
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c6ceb
push 0xd0
call fcn.005838a8
add esp, 4
mov dword [ebp + 0xc], eax
push str.contacts_confirm_update_after_folder_change_btn_no
push str.contacts_confirm_update_after_folder_change_btn_yes
push str.contacts_confirm_update_after_folder_change_txt
push ecx
push ebx
mov byte [ebp - 4], 7
mov ecx, eax
push dword [ebx + 0x10]
call fcn.00497cd0
jmp 0x4c6cf2
mov ecx, ebx
call fcn.004c3d00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4c6f18
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4c6d2d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6f3a
push ecx
push edx
call fcn.00583877
add esp, 8
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c6d5e
mov eax, dword [eax]
push 0x14
push str.contacts_btn_refresh
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
je 0x4c6dc2
push 0xd0
call fcn.005838a8
add esp, 4
mov dword [ebp + 8], eax
push str.contacts_confirm_update_btn_no
push str.contacts_confirm_update_btn_yes
push str.contacts_confirm_update_txt
push ecx
push esi
mov dword [ebp - 4], 8
mov ecx, eax
push dword [esi + 0x10]
call fcn.00497cd0
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c6dd6
mov eax, dword [eax]
push 0x1f
push str.contacts_confirm_update_btn_yes
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
jne 0x4c6ef7
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c6e0d
mov eax, dword [eax]
push 0x11
push str.contacts_btn_save
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
je 0x4c6e71
push 0xd0
call fcn.005838a8
add esp, 4
mov dword [ebp + 8], eax
push str.contacts_confirm_save_btn_no
push str.contacts_confirm_save_btn_yes
push str.contacts_confirm_save_txt
push ecx
push esi
mov dword [ebp - 4], 9
mov ecx, eax
push dword [esi + 0x10]
call fcn.00497cd0
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea ecx, [ebp - 0x28]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c6e85
mov eax, dword [eax]
push 0x1d
push str.contacts_confirm_save_btn_yes
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004470b0
test bl, bl
je 0x4c6ebe
mov ecx, esi
call fcn.004c3d00
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea ecx, [ebp - 0x88]
call fcn.004471f0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4c6ed5
mov eax, dword [eax]
push 0x33
push str.contacts_confirm_update_after_folder_change_btn_yes
mov ecx, eax
call fcn.00457de0
add esp, 8
lea ecx, [ebp - 0x88]
mov bl, al
call fcn.004470b0
test bl, bl
je 0x4c6f18
mov ecx, esi
call fcn.004c3220
lea eax, [esi + 0x2834]
push eax
call fcn.004c4dc0
mov ecx, esi
call fcn.004c5510
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00591c98
call fcn.00591c98
call fcn.00591c98
call fcn.00591c98
int3