Function at 0x4aa170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5a6939
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, dword [esp + 0xc8]
mov eax, dword [esp + 0xcc]
push eax
push str.CPhraseSyncModule::MergeNew___s
mov ecx, edi
call fcn.004aee70
xor ebx, ebx
mov esi, 0xa
add esp, 8
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0xc0], 1
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xc0], 2
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push ebx
lea eax, [esp + 0x1c]
push eax
call edx
lea edi, [esp + 0x20]
mov byte [esp + 0xc0], 3
call fcn.004035d0
mov byte [esp + 0xc0], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa269
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
cmp eax, ebx
jle 0x4aa29c
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x4aa36a
cmp ecx, eax
jg 0x4aa36a
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4aa29c
push 0x5c
lea edi, [esp + 0x24]
call fcn.00404400
push esi
push str.phrase.ini
lea ecx, [esp + 0x28]
push ecx
call fcn.00403fc0
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0xc0], 4
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.004d1580
lea edx, [esp + 0x24]
push edx
push str.Default
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0xcc], 5
call fcn.004d1ab0
mov edi, dword [esp + 0x30]
cmp edi, ebx
je 0x4aa3b5
cmp edi, dword [esp + 0x2c]
je 0x4aa3b5
mov eax, edi
mov ecx, dword [eax + 8]
mov edi, dword [edi]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x4aa387
cmp dword [esi + 0xc], ebx
lea ebp, [esi + 0xc]
jl 0x4aa374
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4aa374
call fcn.00403ce0
mov dword [esp + 0x18], eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x4aa35d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ebp, dword [esp + 0x18]
add ebp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x4aa387
push 0x80070057
call fcn.00404550
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.00404050
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
je 0x4aa30c
push ebp
lea ecx, [esp + 0x50]
call fcn.00468e80
cmp eax, ebx
jne 0x4aa3ac
mov eax, ebp
lea ebx, [esp + 0x4c]
call fcn.004ac5f0
xor ebx, ebx
jmp 0x4aa30c
mov byte [eax + 4], 0
jmp 0x4aa30c
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0xc4], 4
call fcn.004d1650
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xc8]
mov byte [esp + 0xc0], 6
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push ebx
lea eax, [esp + 0x28]
push eax
call edx
lea edi, [esp + 0x18]
mov byte [esp + 0xc0], 7
call fcn.004035d0
mov byte [esp + 0xc0], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa436
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 0xc]
cmp ecx, ebx
jle 0x4aa469
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x4aa36a
cmp eax, ecx
jg 0x4aa36a
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x4aa469
push 0x5c
lea edi, [esp + 0x1c]
call fcn.00404400
push 0xe
push str.389_phrase.ini
lea ecx, [esp + 0x20]
push ecx
call fcn.00403fc0
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.004d1580
lea eax, [esp + 0x24]
push eax
push str.Default
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0xcc], 8
call fcn.004d1ab0
mov edi, dword [esp + 0x30]
jmp 0x4aa4c0
cmp edi, ebx
je 0x4aa559
cmp edi, dword [esp + 0x2c]
je 0x4aa559
mov eax, edi
mov ecx, dword [eax + 8]
mov edi, dword [edi]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x4aa52b
cmp dword [esi + 0xc], ebx
lea ebp, [esi + 0xc]
jl 0x4aa518
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4aa518
call fcn.00403ce0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x4aa50f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebp, [ebx + 0x10]
mov dword [esp + 0x1c], ebp
jmp 0x4aa529
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.00404050
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
je 0x4aa4c0
push ebp
lea ecx, [esp + 0x68]
call fcn.00468e80
cmp eax, ebx
jne 0x4aa550
mov eax, ebp
lea ebx, [esp + 0x64]
call fcn.004ac5f0
xor ebx, ebx
jmp 0x4aa4c0
mov byte [eax + 4], 0
jmp 0x4aa4c0
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0xc4], 6
call fcn.004d1650
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.004a8f00
add esp, 8
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0xa
mov dword [esp + 0x48], ebx
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x9c], ebx
mov ecx, dword [esp + 0xcc]
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push ecx
mov byte [esp + 0xdc], 0xa
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x4aa65d
call fcn.004129d0
cmp eax, ebx
jl 0x4aa619
mov eax, esi
lea ecx, [esp + 0x7c]
call fcn.004d08f0
cmp esi, ebx
je 0x4aa619
push esi
call ebp
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x80]
call fcn.004d05c0
test eax, eax
je 0x4aa67a
mov edi, edi
mov esi, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x68]
call fcn.00468e80
test eax, eax
jne 0x4aa665
push esi
lea ecx, [esp + 0x38]
call fcn.00468e80
test eax, eax
jne 0x4aa661
mov eax, esi
lea ebx, [esp + 0x34]
call fcn.004ac5f0
jmp 0x4aa665
mov esi, eax
jmp 0x4aa607
mov byte [eax + 4], 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x80]
call fcn.004d05c0
test eax, eax
jne 0x4aa630
lea esi, [esp + 0x94]
mov byte [esp + 0xc0], 9
call fcn.004d04e0
xor edi, edi
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
call fcn.004d04e0
mov edx, dword [esp + 0x4c]
cmp edx, edi
mov ecx, dword [esp + 0x60]
je 0x4aa6cd
cmp edx, ecx
je 0x4aa6cd
mov eax, dword [edx + 0xc]
cmp eax, ecx
je 0x4aa6cf
mov edx, eax
mov eax, dword [edx + 0xc]
cmp eax, ecx
jne 0x4aa6c2
jmp 0x4aa6cf
xor edx, edx
cmp edx, edi
mov esi, edx
je 0x4aa74d
jmp 0x4aa6db
mov ecx, dword [esp + 0x60]
test esi, esi
mov edi, esi
je 0x4aa728
mov edx, dword [esi + 0x10]
cmp edx, ecx
je 0x4aa706
test edx, edx
je 0x4aa700
mov eax, dword [edx + 0xc]
cmp eax, ecx
je 0x4aa702
mov edx, eax
mov eax, dword [edx + 0xc]
cmp eax, ecx
jne 0x4aa6f3
mov esi, edx
jmp 0x4aa728
xor edx, edx
mov esi, edx
jmp 0x4aa728
mov eax, dword [esi + 0x14]
cmp eax, ecx
je 0x4aa724
lea ecx, [ecx]
cmp esi, dword [eax + 0x10]
jne 0x4aa720
mov esi, eax
mov eax, dword [eax + 0x14]
cmp eax, ecx
jne 0x4aa710
jmp 0x4aa724
cmp eax, ecx
jne 0x4aa726
xor eax, eax
mov esi, eax
mov edi, dword [edi]
push edi
lea ecx, [esp + 0x38]
call fcn.00468e80
test eax, eax
jne 0x4aa745
mov eax, edi
lea ebx, [esp + 0x34]
call fcn.004ac5f0
jmp 0x4aa749
mov byte [eax + 4], 0
test esi, esi
jne 0x4aa6d7
mov dword [esp + 0x24], 0
push 1
lea ecx, [esp + 0x28]
mov edx, 2
push ecx
mov ecx, dword [esp + 0xd4]
lea eax, [edx - 1]
mov byte [esp + 0xc8], 0xb
call fcn.004d0980
mov edx, dword [esp + 0x34]
test edx, edx
mov ecx, dword [esp + 0x48]
je 0x4aa79b
cmp edx, ecx
je 0x4aa79b
mov eax, dword [edx + 0xc]
cmp eax, ecx
je 0x4aa79d
nop
mov edx, eax
mov eax, dword [edx + 0xc]
cmp eax, ecx
jne 0x4aa790
jmp 0x4aa79d
xor edx, edx
test edx, edx
mov edi, edx
je 0x4aa82f
jmp 0x4aa7b4
mov ecx, dword [esp + 0x48]
test edi, edi
mov esi, edi
je 0x4aa808
mov edx, dword [edi + 0x10]
cmp edx, ecx
je 0x4aa7e3
test edx, edx
je 0x4aa7dd
mov eax, dword [edx + 0xc]
cmp eax, ecx
je 0x4aa7df
lea esp, [esp]
mov edx, eax
mov eax, dword [edx + 0xc]
cmp eax, ecx
jne 0x4aa7d0
mov edi, edx
jmp 0x4aa808
xor edx, edx
mov edi, edx
jmp 0x4aa808
mov eax, dword [edi + 0x14]
cmp eax, ecx
je 0x4aa804
lea ebx, [ebx]
cmp edi, dword [eax + 0x10]
jne 0x4aa800
mov edi, eax
mov eax, dword [eax + 0x14]
cmp eax, ecx
jne 0x4aa7f0
jmp 0x4aa804
cmp eax, ecx
jne 0x4aa806
xor eax, eax
mov edi, eax
mov edx, dword [esi]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4aa810
sub eax, esi
sar eax, 1
push edx
mov ecx, eax
lea esi, [esp + 0x28]
call fcn.004d0b10
test edi, edi
jne 0x4aa7b0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4aa83a
push eax
call ebp
lea edi, [esp + 0x34]
call fcn.004af2c0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4aa854
push eax
call fcn.0057876f
add esp, 4
mov byte [esp + 0xc0], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4aa87c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc0], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa8a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc0], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa8cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x64]
call fcn.004af2c0
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4aa8e6
push eax
call fcn.0057876f
add esp, 4
lea edi, [esp + 0x4c]
call fcn.004af2c0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4aa900
push eax
call fcn.0057876f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 8