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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x340
mov esi, esp
mov dword [esi + 0x328], ebp
mov ebx, dword [ebp + 0xc]
lea eax, [esi + 0x330]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x50d910
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ecx, ebx
call fcn.004b45c0
test eax, eax
je 0x509b1f
mov ecx, ebx
call fcn.004aef30
test eax, eax
jle 0x509b1f
xor eax, eax
dec eax
lea edi, [esi + 0xa0]
mov dword [edi + 0x10], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [edi], xmm0
mov ecx, ebx
call fcn.004aef30
mov dword [esi + 0xc], eax
mov ecx, ebx
call fcn.004b45c0
xor ebx, ebx
mov ecx, edi
push dword [esi + 0xc]
push ebx
push eax
call fcn.004aebf0
lea ecx, [esi + 0x80]
xor eax, eax
dec eax
mov dword [ecx + 0x10], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx], xmm0
mov dword [esi + 0x338], ebx
push eax
push str._Versions_
call fcn.004aea40
lea ecx, [esi + 0x50]
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0xffffffff
mov dword [esi + 0x338], 1
call fcn.004ae9bc
mov dword [esi + 0x338], 2
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 0x80]
push eax
lea eax, [esi + 0xa0]
push eax
call fcn.004f05f0
add esp, 0xc
test al, al
je 0x509aa1
lea ecx, [esi + 0x50]
push 1
call fcn.004aef38
test al, al
je 0x509b9d
sub esp, 0x78
movdqu xmm0, xmmword [0x7a9568]
movdqu xmmword [esp + 0x68], xmm0
movdqu xmmword [esp + 0x58], xmm0
movdqu xmmword [esp + 0x48], xmm0
movdqu xmmword [esp + 0x38], xmm0
movdqu xmmword [esp + 0x28], xmm0
movdqu xmmword [esp + 0x18], xmm0
mov dword [esp + 0x14], str.ConfigParser::Parse__get_check_value_failed
mov dword [esp + 0x10], str.XPluginConfigDef
mov dword [esp + 0xc], str.ParseFromBuffer
mov dword [esp + 8], 0xf4
mov dword [esp + 4], str..._.._applet_third_party_xplugin_src_ConfigDef.cpp
mov dword [esp], 4
call fcn.004ee380
add esp, 0x78
push 1
push 0x27
push 0x69a
call fcn.00506400
add esp, 0xc
xor ebx, ebx
jmp 0x50a29a
sub esp, 0x78
movdqu xmm0, xmmword [0x7a9568]
movdqu xmmword [esp + 0x68], xmm0
movdqu xmmword [esp + 0x58], xmm0
movdqu xmmword [esp + 0x48], xmm0
movdqu xmmword [esp + 0x38], xmm0
movdqu xmmword [esp + 0x28], xmm0
movdqu xmmword [esp + 0x18], xmm0
mov dword [esp + 0x14], str.ConfigParser::Parse__buf_invalid
mov dword [esp + 0x10], str.XPluginConfigDef
mov dword [esp + 0xc], str.ParseFromBuffer
mov dword [esp + 8], 0xea
mov dword [esp + 4], str..._.._applet_third_party_xplugin_src_ConfigDef.cpp
mov dword [esp], 4
call fcn.004ee380
add esp, 0x78
push 1
push 0x26
push 0x69a
call fcn.00506400
add esp, 0xc
xor ebx, ebx
jmp 0x50a2b8
lea edi, [esi + 0x260]
push 0xc8
push 0xff
push edi
call fcn.006ccfc0
add esp, 0xc
mov ecx, edi
call fcn.005d4504
xor eax, eax
dec eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x338], 3
mov ecx, dword [ebp + 0xc]
call fcn.004aef30
mov dword [esi + 0xc], eax
mov ecx, dword [ebp + 0xc]
call fcn.004b45c0
lea edx, [esi + 0x44]
lea ecx, [esi + 0x260]
push 1
push 0x74
push dword [esi + 0xc]
push eax
push edx
call fcn.005d4852
cmp dword [esi + 0x44], 0
je 0x509c81
sub esp, 0x78
movdqu xmm0, xmmword [0x7a9568]
movdqu xmmword [esp + 0x68], xmm0
movdqu xmmword [esp + 0x58], xmm0
movdqu xmmword [esp + 0x48], xmm0
movdqu xmmword [esp + 0x38], xmm0
movdqu xmmword [esp + 0x28], xmm0
movdqu xmmword [esp + 0x18], xmm0
mov dword [esp + 0x14], str.ConfigParser::Parse__parse_xml_error
mov dword [esp + 0x10], str.XPluginConfigDef
mov dword [esp + 0xc], str.ParseFromBuffer
mov dword [esp + 8], 0xfd
mov dword [esp + 4], str..._.._applet_third_party_xplugin_src_ConfigDef.cpp
mov dword [esp], 4
call fcn.004ee380
add esp, 0x78
push 1
push 0x28
push 0x69a
call fcn.00506400
add esp, 0xc
xor ebx, ebx
jmp 0x50a28f
mov dword [esi + 0x2c], 0xffffffff
lea eax, [esi + 0xc0]
lea ecx, [esi + 0x260]
push eax
call fcn.005d3174
lea eax, [esi + 0x2c]
lea ecx, [esi + 0xc0]
push str.updateConfig
push eax
call fcn.005d309c
lea ecx, [esi + 0x2c]
push str.checkvalue
lea eax, [esi + 0xc0]
push eax
call fcn.005d30e4
lea ecx, [esi + 0xc0]
push 0x6fa356
call fcn.005d2f98
mov ecx, dword [ebp + 8]
push eax
call fcn.004af198
lea ecx, [esi + 0x2c]
push str.signature
lea eax, [esi + 0xc0]
push eax
call fcn.005d30e4
lea ecx, [esi + 0xc0]
push 0x6fa356
call fcn.005d2f98
mov ecx, dword [ebp + 8]
add ecx, 0x14
mov dword [esi + 0xc], ecx
push eax
call fcn.004af198
lea ecx, [esi + 0x2c]
push str.configVer
lea eax, [esi + 0xc0]
push eax
call fcn.005d30e4
lea ecx, [esi + 0xc0]
push 0x6fa356
call fcn.005d2f98
mov ecx, dword [ebp + 8]
add ecx, 0x28
mov dword [esi + 0x34], ecx
push eax
call fcn.004af198
cmp byte [ebp + 0x10], 0
je 0x50a2ce
mov eax, dword [ebp + 8]
add eax, 0x48
lea ecx, [esi + 0x2c]
push ecx
mov dword [esi + 0x3c], eax
push eax
call fcn.0050a4e0
add esp, 8
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x3c]
mov edi, dword [eax + 0x40]
cmp edi, ebx
je 0x509d7d
add edi, 0xfffffe60
mov ecx, edi
call fcn.005059f8
jmp 0x509d6a
mov eax, dword [ebp + 8]
mov dword [eax + 0x40], ebx
lea eax, [esi + 0x40]
mov dword [eax], 0xffffffff
mov dword [esi + 0x338], 3
lea ecx, [esi + 0x2c]
push str.Versions
push eax
call fcn.005d309c
lea eax, [esi + 8]
mov dword [eax], 0xffffffff
lea ecx, [esi + 0x40]
push str.VersionInfo
push eax
call fcn.005d309c
mov eax, dword [ebp + 8]
add eax, 0x3c
mov dword [esi + 0x30], eax
lea ecx, [esi + 8]
call fcn.005d308a
test eax, eax
je 0x50a237
push 0x1a0
push 0xff
lea edi, [esi + 0xc0]
push edi
call fcn.006ccfc0
add esp, 0xc
mov ecx, edi
call fcn.0050a920
mov dword [esi + 0x338], 4
lea ecx, [esi + 8]
push 0x744868
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0x6fa356
call fcn.005d2f98
lea ecx, [esi + 0xc0]
push eax
call fcn.004af198
lea ecx, [esi + 8]
push str.fullurl
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0x6fa356
call fcn.005d2f98
lea ecx, [esi + 0xd4]
push eax
call fcn.004af198
lea ecx, [esi + 8]
push 0x744882
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0x6fa356
call fcn.005d2f98
lea ecx, [esi + 0xe8]
push eax
call fcn.004af198
lea ecx, [esi + 8]
push str.version
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0
call fcn.005d2fb0
mov dword [esi + 0x100], eax
lea ecx, [esi + 0xc0]
push 1
call fcn.004aef38
test al, al
jne 0x509ee0
lea ecx, [esi + 0xd4]
push 1
call fcn.004aef38
test al, al
jne 0x509ee0
lea ecx, [esi + 0xe8]
push 1
call fcn.004aef38
cmp dword [esi + 0x100], 0
sete cl
or al, cl
cmp al, 1
jne 0x509f79
sub esp, 0x78
movdqu xmm0, xmmword [0x7a9568]
movdqu xmmword [esp + 0x68], xmm0
movdqu xmmword [esp + 0x58], xmm0
movdqu xmmword [esp + 0x48], xmm0
movdqu xmmword [esp + 0x38], xmm0
movdqu xmmword [esp + 0x28], xmm0
movdqu xmmword [esp + 0x18], xmm0
mov dword [esp + 0x14], str.ConfigParser::Parse__item_invalid__skip
mov dword [esp + 0x10], str.XPluginConfigDef
mov dword [esp + 0xc], str.ParseFromBuffer
mov dword [esp + 8], 0x124
mov dword [esp + 4], str..._.._applet_third_party_xplugin_src_ConfigDef.cpp
mov dword [esp], 4
call fcn.004ee380
add esp, 0x78
lea edi, [esi + 0xc0]
mov ecx, edi
call fcn.005059f8
mov dword [esi + 0x338], 3
lea ecx, [esi + 8]
push str.VersionInfo
push edi
call fcn.005d312c
mov eax, dword [esi + 0xc0]
mov dword [esi + 8], eax
jmp 0x509dc4
lea ecx, [esi + 8]
push 0x7448c2
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0
call fcn.005d2fb0
mov dword [esi + 0x104], eax
lea ecx, [esi + 8]
push str.useCdn
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0
call fcn.005d300c
mov byte [esi + 0xfc], al
lea ecx, [esi + 8]
push str.lowPriority
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0
call fcn.005d300c
mov byte [esi + 0xfd], al
lea ecx, [esi + 8]
push str.onlyForInstalled
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0
call fcn.005d300c
mov byte [esi + 0xfe], al
lea ecx, [esi + 8]
push str.releaseDate
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0x6fa356
call fcn.005d2f98
lea ecx, [esi + 0x1fc]
push eax
call fcn.004af198
lea ecx, [esi + 8]
push 0x744936
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0xbff00000
push 0
call fcn.005d2fd6
fstp qword [esi + 0x78]
movq xmm0, qword [esi + 0x78]
movq qword [esi + 0x210], xmm0
lea ecx, [esi + 8]
push str.updateEndTime
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0xbff00000
push 0
call fcn.005d2fd6
fstp qword [esi + 0x70]
movq xmm0, qword [esi + 0x70]
movq qword [esi + 0x218], xmm0
lea ecx, [esi + 8]
push str.updateSchedule
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0x6fa356
call fcn.005d2f98
lea ecx, [esi + 0x220]
push eax
call fcn.004af198
lea ecx, [esi + 8]
push 0x744990
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0x6fa356
call fcn.005d2f98
lea ecx, [esi + 0x234]
push eax
call fcn.004af198
lea ecx, [esi + 8]
push 0x7449b8
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0x6fa356
call fcn.005d2f98
lea ecx, [esi + 0x248]
push eax
call fcn.004af198
mov dword [esi + 0x38], 0xffffffff
lea ecx, [esi + 8]
push str.Description
lea eax, [esi + 0x38]
push eax
call fcn.005d309c
lea ecx, [esi + 0x38]
push str.versionStr
lea eax, [esi + 0x10]
push eax
call fcn.005d30e4
lea ecx, [esi + 0x10]
push 0x6fa356
call fcn.005d2f98
lea ecx, [esi + 0x108]
push eax
call fcn.004af198
lea eax, [esi + 8]
push eax
lea eax, [esi + 0x120]
push eax
call fcn.0050ab34
add esp, 8
lea eax, [esi + 8]
push eax
lea eax, [esi + 0x1f0]
push eax
call fcn.0050adb0
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
cmp ecx, dword [eax + 0x44]
je 0x50a1a5
mov dword [esi + 0x338], 6
mov dword [esi + 0xc], ecx
lea eax, [esi + 0xc0]
push eax
call fcn.0050ca40
mov ecx, dword [esi + 0xc]
add ecx, 0x1a0
mov eax, dword [ebp + 8]
mov dword [eax + 0x40], ecx
jmp 0x50a228
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0xffffffff
mov eax, dword [esi + 0x30]
sub ecx, dword [eax]
sar ecx, 5
imul eax, ecx, 0xc4ec4ec5
lea ecx, [eax + 1]
cmp ecx, 0x9d89d9
jae 0x50a3f5
lea edx, [eax + eax]
cmp edx, ecx
cmovb edx, ecx
cmp eax, 0x4ec4ec
mov ecx, 0x9d89d8
cmovae edx, ecx
lea ecx, [esi + 0x10]
push dword [esi + 0x3c]
push eax
push edx
call fcn.0050cdbc
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x338], 5
lea eax, [esi + 0xc0]
push eax
call fcn.0050ca40
lea eax, [esi + 0x10]
add dword [esi + 0x18], 0x1a0
mov ecx, dword [esi + 0x30]
push eax
call fcn.0050ce22
lea ecx, [esi + 0x10]
call fcn.0050ce92
mov dword [esi + 0x338], 3
jmp 0x509f46
push 1
push 0x25
push 0x69a
call fcn.00506400
add esp, 0xc
mov ecx, dword [esi + 0x34]
push 1
call fcn.004aef38
test al, al
jne 0x50a28d
push dword [esi + 0x34]
call fcn.004efa70
add esp, 4
mov ecx, eax
test eax, eax
jle 0x50a28d
mov edx, 0x51eb851f
mov eax, ecx
mul edx
shr edx, 5
imul eax, edx, 0x64
neg eax
add eax, ecx
add eax, 0x64
push 1
push eax
push 0x69a
call fcn.00506400
add esp, 0xc
mov bl, 1
lea ecx, [esi + 0x260]
call fcn.005d4550
lea ecx, [esi + 0x50]
call fcn.004aeec0
lea ecx, [esi + 0x80]
call fcn.004aeec0
lea ecx, [esi + 0xa0]
call fcn.004aeec0
mov eax, dword [esi + 0x330]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x50]
push eax
call fcn.004af262
test al, al
je 0x50a379
push 0x7bd538
push dword [esi + 0xc]
push dword [ebp + 8]
call fcn.004f1d50
add esp, 0xc
test al, al
jne 0x509d4b
sub esp, 0x78
movdqu xmm0, xmmword [0x7a9568]
movdqu xmmword [esp + 0x68], xmm0
movdqu xmmword [esp + 0x58], xmm0
movdqu xmmword [esp + 0x48], xmm0
movdqu xmmword [esp + 0x38], xmm0
movdqu xmmword [esp + 0x28], xmm0
movdqu xmmword [esp + 0x18], xmm0
mov dword [esp + 0x14], str.ConfigParser::Parse__signature_verify_failed
mov dword [esp + 0x10], str.XPluginConfigDef
mov dword [esp + 0xc], str.ParseFromBuffer
mov dword [esp + 8], 0x110
mov dword [esp + 4], str..._.._applet_third_party_xplugin_src_ConfigDef.cpp
mov dword [esp], 4
call fcn.004ee380
add esp, 0x78
push 1
push 0x27
push 0x69a
call fcn.00506400
add esp, 0xc
jmp 0x509c7a
sub esp, 0x78
movdqu xmm0, xmmword [0x7a9568]
movdqu xmmword [esp + 0x68], xmm0
movdqu xmmword [esp + 0x58], xmm0
movdqu xmmword [esp + 0x48], xmm0
movdqu xmmword [esp + 0x38], xmm0
movdqu xmmword [esp + 0x28], xmm0
movdqu xmmword [esp + 0x18], xmm0
mov dword [esp + 0x14], str.ConfigParser::Parse__check_value_not_match
mov dword [esp + 0x10], str.XPluginConfigDef
mov dword [esp + 0xc], str.ParseFromBuffer
mov dword [esp + 8], 0x108
mov dword [esp + 4], str..._.._applet_third_party_xplugin_src_ConfigDef.cpp
mov dword [esp], 4
call fcn.004ee380
add esp, 0x78
push 1
push 0x27
push 0x69a
call fcn.00506400
add esp, 0xc
jmp 0x509c7a
mov ecx, dword [esi + 0x30]
call fcn.00456e1c
nop
push ebp
sub esp, 0x78
lea esi, [ebp - 0x33c]
mov ebp, dword [esi + 0x328]
lea ecx, [esi + 0xc0]
call fcn.005059f8
add esp, 0x78
pop ebp
ret