Function at 0x518340
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 - 0x44], esi
cmp dword [esi + 0x14], eax
jae 0x5183b4
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.DownloadItemsArg
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.userId
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.groupId
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 0x5931e4
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 0xf
push str.subItems
mov ecx, esi
call edx
mov ecx, dword [ebx + 0x5c]
sub ecx, dword [ebx + 0x58]
add edi, eax
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x28]
push 0xc
mov ecx, esi
call eax
mov ecx, dword [ebx + 0x58]
add edi, eax
mov dword [ebp - 0x40], ecx
cmp ecx, dword [ebx + 0x5c]
je 0x5184bb
jmp 0x5184a3
mov ecx, dword [ebp - 0x40]
push esi
call fcn.0050fbd0
add edi, eax
mov eax, dword [ebp - 0x40]
add eax, 0x250
mov dword [ebp - 0x40], eax
cmp eax, dword [ebx + 0x5c]
jne 0x5184a0
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
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]
push 5
push 0xf
add edi, eax
mov eax, dword [edx + 0x14]
push str.subFolderItems
mov ecx, esi
call eax
mov ecx, dword [ebx + 0x6c]
sub ecx, dword [ebx + 0x68]
add edi, eax
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x28]
push 0xc
mov ecx, esi
call eax
mov ecx, dword [ebx + 0x68]
add edi, eax
mov dword [ebp - 0x40], ecx
cmp ecx, dword [ebx + 0x6c]
je 0x51853b
jmp 0x518523
mov ecx, dword [ebp - 0x40]
push esi
call fcn.0050fbd0
add edi, eax
mov eax, dword [ebp - 0x40]
add eax, 0x250
mov dword [ebp - 0x40], eax
cmp eax, dword [ebx + 0x6c]
jne 0x518520
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
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]
push 6
push 8
add edi, eax
mov eax, dword [edx + 0x14]
push str.reason
mov ecx, esi
call eax
mov edx, dword [esi]
add edi, eax
mov eax, dword [ebx + 0x78]
push eax
mov eax, dword [edx + 0x44]
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]
push 7
push 2
add edi, eax
mov eax, dword [edx + 0x14]
push str.newCreatedItemsWhenAutoSync
mov ecx, esi
call eax
mov cl, byte [ebx + 0x7c]
mov edx, dword [esi]
mov edx, dword [edx + 0x38]
mov byte [ebp - 0x40], cl
add edi, eax
mov eax, dword [ebp - 0x40]
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 8
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0xf
push str.downloadAllItems
mov ecx, esi
call edx
mov ecx, dword [ebx + 0x84]
sub ecx, dword [ebx + 0x80]
add edi, eax
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x28]
push 0xc
mov ecx, esi
call eax
mov ecx, dword [ebx + 0x80]
add edi, eax
mov dword [ebp - 0x40], ecx
cmp ecx, dword [ebx + 0x84]
je 0x518625
jmp 0x51860a
mov ecx, dword [ebp - 0x40]
push esi
call fcn.0050fbd0
add edi, eax
mov eax, dword [ebp - 0x40]
add eax, 0x250
mov dword [ebp - 0x40], eax
cmp eax, dword [ebx + 0x84]
jne 0x518607
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
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]
push 9
push 0xd
add edi, eax
mov eax, dword [edx + 0x14]
push str.extraParam
mov ecx, esi
call eax
mov edx, dword [esi]
add edi, eax
mov eax, dword [ebx + 0x98]
push eax
mov eax, dword [edx + 0x20]
push 0xb
push 0xb
mov ecx, esi
call eax
mov ecx, dword [ebx + 0x94]
add edi, eax
mov eax, dword [ecx]
mov dword [ebp - 0x40], eax
cmp eax, ecx
je 0x5186f2
jmp 0x518679
mov eax, dword [ebp - 0x40]
mov edx, dword [esi]
add eax, 0xc
push eax
mov eax, dword [edx + 0x50]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x50]
add edi, eax
mov eax, dword [ebp - 0x40]
add eax, 0x28
push eax
mov ecx, esi
call edx
mov edx, dword [ebp - 0x40]
add edi, eax
cmp byte [edx + 0x45], 0
jne 0x5186ea
mov ecx, dword [edx + 8]
cmp byte [ecx + 0x45], 0
jne 0x5186c3
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
jne 0x5186be
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
je 0x5186b4
mov dword [ebp - 0x40], ecx
jmp 0x5186e7
mov eax, dword [edx + 4]
cmp byte [eax + 0x45], 0
jne 0x5186e4
jmp 0x5186d3
mov edx, dword [ebp - 0x40]
cmp edx, dword [eax + 8]
jne 0x5186e4
mov dword [ebp - 0x40], eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x5186d0
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebx + 0x94]
jne 0x518676
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
add edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
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