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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ac98
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5fb61c]
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 esi, dword [ebp + 8]
inc dword [esi + 0x10]
mov eax, dword [esi + 0x10]
mov ebx, ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], esi
cmp dword [esi + 0x14], eax
jae 0x5228c7
lea ecx, [ebp - 0x3c]
call fcn.0053484c
push 0x5e4634
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x3c], vtable.apache::thrift::protocol::TProtocolException.0
mov dword [ebp - 0x14], 6
call fcn.00533e7f
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push str.SyncSettingsRevisionArg
mov ecx, esi
mov dword [ebp - 4], 0
call eax
mov edx, dword [esi]
push 1
push 0xb
mov edi, eax
mov eax, dword [edx + 0x14]
push str.appID
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x50]
add edi, eax
lea eax, [ebx + 4]
push eax
mov ecx, esi
call edx
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
push 2
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0xb
push str.name
mov ecx, esi
call edx
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
lea ecx, [ebx + 0x20]
push ecx
mov ecx, esi
call edx
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
push 3
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0xb
push str.deviceID
mov ecx, esi
call edx
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
lea ecx, [ebx + 0x3c]
push ecx
mov ecx, esi
call edx
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
push 4
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0xb
push str.sha1
mov ecx, esi
call edx
lea ecx, [ebx + 0x58]
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
push ecx
mov ecx, esi
call edx
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
push 5
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0xd
push str.extraParam
mov ecx, esi
call edx
mov edx, dword [esi]
add edi, eax
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [edx + 0x20]
push 0xb
push 0xb
mov ecx, esi
call eax
add edi, eax
mov eax, dword [ebx + 0x78]
mov ebx, dword [eax]
cmp ebx, eax
je 0x522a2f
mov edx, dword [esi]
mov edx, dword [edx + 0x50]
lea eax, [ebx + 0xc]
push eax
mov ecx, esi
call edx
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
lea ecx, [ebx + 0x28]
push ecx
mov ecx, esi
call edx
add edi, eax
cmp byte [ebx + 0x45], 0
jne 0x522a27
mov eax, dword [ebx + 8]
cmp byte [eax + 0x45], 0
jne 0x522a0c
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x45], 0
jne 0x522a27
lea ecx, [ecx]
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x45], 0
je 0x522a00
jmp 0x522a27
mov eax, dword [ebx + 4]
cmp byte [eax + 0x45], 0
jne 0x522a25
cmp ebx, dword [eax + 8]
jne 0x522a25
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x522a15
mov ebx, eax
mov eax, dword [ebp - 0x40]
cmp ebx, dword [eax + 0x78]
jne 0x5229c6
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
mov edx, dword [esi]
add edi, eax
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov edx, dword [esi]
add edi, eax
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
mov edx, dword [esi]
add edi, eax
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
add eax, edi
dec dword [esi + 0x10]
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.005332ca
mov esp, ebp
pop ebp
ret 4