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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x5779f1
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
push edi
mov eax, dword [0x5ea6f0]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0x38
mov dword [esp + 0x24], eax
lea eax, [esp + 0x68]
push 0
push eax
mov dword [esp + 0x28], edi
call fcn.00550c40
add esp, 4
lea ecx, [esp + 0x6c]
push 0
call fcn.00507d20
mov dword [esp + 0xf0], 0
xorps xmm0, xmm0
cmp dword [edi + 0x14], 0x10
mov eax, 3
mov esi, dword [esp + 0x74]
movdqa xmmword [esp + 0x64], xmm0
mov word [esp + 0x72], ax
mov dword [esp + 0x18], esi
jb 0x502549
mov ecx, dword [edi]
jmp 0x50254b
mov ecx, edi
cmp byte [ecx], 0
mov eax, ecx
je 0x502558
inc eax
cmp byte [eax], 0
jne 0x502552
xorps xmm0, xmm0
sub eax, ecx
movdqa xmmword [esp + 0x34], xmm0
mov edx, 0x405
mov word [esp + 0x42], dx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
movdqa xmmword [esp + 0x24], xmm0
mov word [esp + 0x32], dx
mov dword [esp + 0x2c], str.msgtype
mov dword [esp + 0x24], 7
push esi
lea eax, [esp + 0x38]
mov byte [esp + 0xf4], 3
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x70]
call fcn.00508440
cmp dword [edi + 0x2c], 0x10
lea ecx, [edi + 0x18]
jb 0x5025b7
mov ecx, dword [ecx]
cmp byte [ecx], 0
mov eax, ecx
je 0x5025c6
mov edi, edi
inc eax
cmp byte [eax], 0
jne 0x5025c0
xorps xmm0, xmm0
sub eax, ecx
movdqa xmmword [esp + 0x24], xmm0
mov edx, 0x405
mov word [esp + 0x32], dx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
movdqa xmmword [esp + 0x34], xmm0
mov word [esp + 0x42], dx
mov dword [esp + 0x3c], str.guid
mov dword [esp + 0x34], 4
push esi
lea eax, [esp + 0x28]
mov byte [esp + 0xf4], 7
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
call fcn.00508440
cmp dword [edi + 0x44], 0x10
lea ecx, [edi + 0x30]
jb 0x502625
mov ecx, dword [ecx]
cmp byte [ecx], 0
mov eax, ecx
je 0x502636
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x502630
xorps xmm0, xmm0
sub eax, ecx
movdqa xmmword [esp + 0x24], xmm0
mov edx, 0x405
mov word [esp + 0x32], dx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
movdqa xmmword [esp + 0x34], xmm0
mov word [esp + 0x42], dx
mov dword [esp + 0x3c], str.helperversion
mov dword [esp + 0x34], 0xd
push esi
lea eax, [esp + 0x28]
mov byte [esp + 0xf4], 0xb
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
call fcn.00508440
cmp dword [edi + 0x5c], 0x10
lea ecx, [edi + 0x48]
jb 0x502695
mov ecx, dword [ecx]
cmp byte [ecx], 0
mov eax, ecx
je 0x5026a6
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x5026a0
xorps xmm0, xmm0
sub eax, ecx
movdqa xmmword [esp + 0x24], xmm0
mov edx, 0x405
mov word [esp + 0x32], dx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
movdqa xmmword [esp + 0x34], xmm0
mov word [esp + 0x42], dx
mov dword [esp + 0x3c], str.osversion
mov dword [esp + 0x34], 9
push esi
lea eax, [esp + 0x28]
mov byte [esp + 0xf4], 0xf
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
call fcn.00508440
cmp dword [edi + 0x74], 0x10
lea ecx, [edi + 0x60]
jb 0x502705
mov ecx, dword [ecx]
cmp byte [ecx], 0
mov eax, ecx
je 0x502716
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x502710
xorps xmm0, xmm0
sub eax, ecx
movdqa xmmword [esp + 0x24], xmm0
mov edx, 0x405
mov word [esp + 0x32], dx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
movdqa xmmword [esp + 0x34], xmm0
mov word [esp + 0x42], dx
mov dword [esp + 0x3c], str.time
mov dword [esp + 0x34], 4
push esi
lea eax, [esp + 0x28]
mov byte [esp + 0xf4], 0x13
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
call fcn.00508440
cmp dword [edi + 0x8c], 0x10
lea ecx, [edi + 0x78]
jb 0x502778
mov ecx, dword [ecx]
cmp byte [ecx], 0
mov eax, ecx
je 0x502786
nop
inc eax
cmp byte [eax], 0
jne 0x502780
xorps xmm0, xmm0
sub eax, ecx
movdqa xmmword [esp + 0x24], xmm0
mov edx, 0x405
mov word [esp + 0x32], dx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
movdqa xmmword [esp + 0x34], xmm0
mov word [esp + 0x42], dx
mov dword [esp + 0x3c], str.userconfig_dat
mov dword [esp + 0x34], 0xe
push esi
lea eax, [esp + 0x28]
mov byte [esp + 0xf4], 0x17
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
call fcn.00508440
cmp dword [edi + 0xa4], 0x10
lea ecx, [edi + 0x90]
jb 0x5027eb
mov ecx, dword [ecx]
cmp byte [ecx], 0
mov eax, ecx
je 0x5027f8
inc eax
cmp byte [eax], 0
jne 0x5027f2
xorps xmm0, xmm0
sub eax, ecx
movdqa xmmword [esp + 0x24], xmm0
mov edx, 0x405
mov word [esp + 0x32], dx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
movdqa xmmword [esp + 0x34], xmm0
mov word [esp + 0x42], dx
mov dword [esp + 0x3c], 0x5d21b4
mov dword [esp + 0x34], 2
push esi
lea eax, [esp + 0x28]
mov byte [esp + 0xf4], 0x1b
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
call fcn.00508440
xorps xmm0, xmm0
mov eax, 4
movdqa xmmword [esp + 0x34], xmm0
mov word [esp + 0x42], ax
xor ecx, ecx
mov eax, 0x2aaaaaab
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0xac]
sub ecx, dword [edi + 0xa8]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x502935
xor eax, eax
mov dword [esp + 0xc], eax
mov edi, edi
xorps xmm0, xmm0
xor ecx, ecx
movdqa xmmword [esp + 0x24], xmm0
mov word [esp + 0x32], cx
mov byte [esp + 0xf0], 0x1f
mov edx, dword [edi + 0xa8]
add edx, eax
cmp dword [edx + 0x14], 0x10
jb 0x5028b8
mov edx, dword [edx]
mov cl, byte [edx]
mov eax, edx
mov byte [esp + 0x17], cl
test cl, cl
je 0x5028cd
cmp byte [eax + 1], 0
lea eax, [eax + 1]
jne 0x5028c4
cmp byte [esp + 0x17], 0
mov ecx, edx
je 0x5028dc
inc ecx
cmp byte [ecx], 0
jne 0x5028d6
push esi
sub esp, 8
sub ecx, edx
mov eax, esp
mov dword [eax + 4], ecx
lea ecx, [esp + 0x30]
mov dword [eax], edx
call fcn.00508ab0
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
call fcn.005080a0
mov ecx, dword [edi + 0xac]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0xa8]
inc dword [esp + 0x10]
add dword [esp + 0xc], 0x18
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
jb 0x502890
xorps xmm0, xmm0
mov eax, 0x405
movdqa xmmword [esp + 0x24], xmm0
mov word [esp + 0x32], ax
mov dword [esp + 0x2c], 0x5d2270
mov dword [esp + 0x24], 3
push esi
lea eax, [esp + 0x38]
mov byte [esp + 0xf4], 0x22
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x70]
call fcn.00508440
xorps xmm0, xmm0
mov eax, 4
movdqa xmmword [esp + 0x34], xmm0
mov word [esp + 0x42], ax
xor ecx, ecx
mov eax, 0x2aaaaaab
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + 0xb8]
sub ecx, dword [edi + 0xb4]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x502a8e
mov esi, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea ebx, [ebx]
xorps xmm0, xmm0
mov eax, 3
movdqa xmmword [esp + 0x24], xmm0
mov word [esp + 0x32], ax
lea eax, [esp + 0x24]
mov byte [esp + 0xf0], 0x25
push eax
mov eax, dword [edi + 0xb4]
push dword [esp + 0x1c]
add eax, ecx
push eax
call fcn.00503c70
mov eax, dword [esp + 0x34]
cmp eax, esi
jb 0x502a37
test esi, esi
jne 0x502a03
lea edi, [esi + 0x10]
jmp 0x502a0e
lea edi, [esi + 1]
shr edi, 1
add edi, esi
cmp edi, esi
jbe 0x502a33
mov ecx, dword [esp + 0x18]
mov eax, edi
shl eax, 4
push eax
shl esi, 4
push esi
push dword [esp + 0x44]
call fcn.00508bb0
mov esi, edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], esi
mov edi, dword [esp + 0x1c]
movdqu xmm0, xmmword [esp + 0x24]
mov ecx, eax
inc dword [esp + 0xc]
add dword [esp + 0x10], 0x30
inc eax
shl ecx, 4
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
xor eax, eax
movdqu xmmword [ecx], xmm0
mov ecx, dword [edi + 0xb8]
sub ecx, dword [edi + 0xb4]
mov word [esp + 0x32], ax
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esp + 0x10]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0xc], eax
jb 0x5029c0
mov esi, dword [esp + 0x18]
xorps xmm0, xmm0
mov eax, 0x405
movdqa xmmword [esp + 0x24], xmm0
mov word [esp + 0x32], ax
mov dword [esp + 0x2c], str.reginfo
mov dword [esp + 0x24], 7
push esi
lea eax, [esp + 0x38]
mov byte [esp + 0xf4], 0x27
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x70]
call fcn.00508440
xorps xmm0, xmm0
mov eax, 4
movdqa xmmword [esp + 0x34], xmm0
mov word [esp + 0x42], ax
xor ecx, ecx
mov eax, 0x38e38e39
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + 0xc4]
sub ecx, dword [edi + 0xc0]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x502bf1
mov esi, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x502b20
xorps xmm0, xmm0
mov eax, 3
movdqa xmmword [esp + 0x24], xmm0
mov word [esp + 0x32], ax
lea eax, [esp + 0x24]
mov byte [esp + 0xf0], 0x2a
push eax
mov eax, dword [edi + 0xc0]
push dword [esp + 0x1c]
add eax, ecx
push eax
call fcn.00503a20
mov eax, dword [esp + 0x34]
cmp eax, esi
jb 0x502b97
test esi, esi
jne 0x502b63
lea edi, [esi + 0x10]
jmp 0x502b6e
lea edi, [esi + 1]
shr edi, 1
add edi, esi
cmp edi, esi
jbe 0x502b93
mov ecx, dword [esp + 0x18]
mov eax, edi
shl eax, 4
push eax
shl esi, 4
push esi
push dword [esp + 0x44]
call fcn.00508bb0
mov esi, edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], esi
mov edi, dword [esp + 0x1c]
movdqu xmm0, xmmword [esp + 0x24]
mov ecx, eax
inc dword [esp + 0xc]
add dword [esp + 0x10], 0x90
inc eax
shl ecx, 4
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
xor eax, eax
movdqu xmmword [ecx], xmm0
mov ecx, dword [edi + 0xc4]
sub ecx, dword [edi + 0xc0]
mov word [esp + 0x32], ax
mov eax, 0x38e38e39
imul ecx
mov ecx, dword [esp + 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0xc], eax
jb 0x502b20
mov esi, dword [esp + 0x18]
xorps xmm0, xmm0
mov eax, 0x405
movdqa xmmword [esp + 0x24], xmm0
mov word [esp + 0x32], ax
mov dword [esp + 0x2c], str.embeddedflash
mov dword [esp + 0x24], 0xd
push esi
lea eax, [esp + 0x38]
mov byte [esp + 0xf4], 0x2c
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x70]
call fcn.00508440
xorps xmm0, xmm0
movq qword [esp + 0x54], xmm0
movdqa xmmword [esp + 0x44], xmm0
movdqa xmmword [esp + 0x44], xmm0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x100
movdqa xmmword [esp + 0xb4], xmm0
lea eax, [esp + 0x44]
movdqa xmmword [esp + 0xa4], xmm0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xa4], eax
movdqu xmmword [esp + 0xa8], xmm0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0x100
mov dword [esp + 0xc0], 0x144
mov byte [esp + 0xc4], 0
lea eax, [esp + 0xa4]
mov byte [esp + 0xf0], 0x2f
push eax
lea ecx, [esp + 0x68]
call fcn.00509130
mov ecx, dword [esp + 0x50]
lea eax, [ecx + 1]
cmp eax, dword [esp + 0x54]
jbe 0x502ce4
push 1
lea ecx, [esp + 0x48]
call fcn.0050a7c0
mov ecx, dword [esp + 0x50]
mov eax, ecx
inc ecx
mov dword [esp + 0x50], ecx
mov byte [eax], 0
mov edx, dword [esp + 0x4c]
dec dword [esp + 0x50]
cmp byte [edx], 0
jne 0x502cff
xor ecx, ecx
jmp 0x502d0d
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x502d04
sub ecx, esi
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.004e9140
push dword [esp + 0xb0]
call fcn.00550fa6
add esp, 4
push dword [esp + 0xac]
call fcn.0054e059
add esp, 4
push dword [esp + 0x4c]
call fcn.00550fa6
add esp, 4
push dword [esp + 0x48]
call fcn.0054e059
mov edi, dword [esp + 0x7c]
add esp, 4
test edi, edi
je 0x502da2
cmp dword [edi], 0
je 0x502d7c
jmp 0x502d60
mov esi, dword [edi]
cmp esi, dword [edi + 8]
je 0x502d7c
push dword [edi]
mov esi, dword [esi + 8]
call fcn.00550fa6
add esp, 4
mov dword [edi], esi
test esi, esi
jne 0x502d60
jmp 0x502d8e
mov eax, dword [edi]
test eax, eax
je 0x502d8e
cmp eax, dword [edi + 8]
jne 0x502d8e
mov dword [eax + 4], 0
push dword [edi + 0x10]
call fcn.0054e059
add esp, 4
push edi
call fcn.0054e059
add esp, 4
push dword [esp + 0x84]
call fcn.00550fa6
add esp, 4
push dword [esp + 0x80]
call fcn.0054e059
add esp, 4
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.005507d9
mov esp, ebp
pop ebp
ret 8