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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x604e2d
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
push edi
mov eax, dword [0x697bc0]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x38
mov dword [esp + 0x24], eax
lea eax, [esp + 0x68]
push 0
push eax
mov dword [esp + 0x28], esi
call fcn.005c63d0
add esp, 0xc
lea ecx, [esp + 0x64]
push 0
push 0x400
push 0
call fcn.00514b10
mov dword [esp + 0xf0], 0
lea ecx, [esi + 0x30]
cmp dword [ecx + 0x14], 0x10
xorps xmm0, xmm0
mov edi, dword [esp + 0x74]
mov eax, 3
movdqa xmmword [esp + 0x64], xmm0
mov word [esp + 0x72], ax
mov dword [esp + 0x18], edi
jb 0x512531
mov ecx, dword [ecx]
cmp byte [ecx], 0
mov eax, ecx
je 0x51253e
inc eax
cmp byte [eax], 0
jne 0x512538
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.msgtype
mov dword [esp + 0x34], 7
push edi
lea eax, [esp + 0x28]
mov byte [esp + 0xf4], 3
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
call fcn.00515470
cmp dword [esi + 0x2c], 0x10
lea ecx, [esi + 0x18]
jb 0x51259d
mov ecx, dword [ecx]
cmp byte [ecx], 0
mov eax, ecx
je 0x5125aa
inc eax
cmp byte [eax], 0
jne 0x5125a4
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.guid
mov dword [esp + 0x24], 4
push edi
lea eax, [esp + 0x38]
mov byte [esp + 0xf4], 7
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x70]
call fcn.00515470
cmp dword [esi + 0x74], 0x10
lea ecx, [esi + 0x60]
jb 0x512609
mov ecx, dword [ecx]
cmp byte [ecx], 0
mov eax, ecx
je 0x512616
inc eax
cmp byte [eax], 0
jne 0x512610
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.helperversion
mov dword [esp + 0x24], 0xd
push edi
lea eax, [esp + 0x38]
mov byte [esp + 0xf4], 0xb
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x70]
call fcn.00515470
cmp dword [esi + 0x5c], 0x10
lea ecx, [esi + 0x48]
jb 0x512675
mov ecx, dword [ecx]
cmp byte [ecx], 0
mov eax, ecx
je 0x512686
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x512680
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.time
mov dword [esp + 0x24], 4
push edi
lea eax, [esp + 0x38]
mov byte [esp + 0xf4], 0xf
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x70]
call fcn.00515470
cmp dword [esi + 0x14], 0x10
jb 0x5126e4
mov ecx, dword [esi]
jmp 0x5126e6
mov ecx, esi
cmp byte [ecx], 0
mov eax, ecx
je 0x5126f6
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x5126f0
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], 0x670604
mov dword [esp + 0x24], 2
push edi
lea eax, [esp + 0x38]
mov byte [esp + 0xf4], 0x13
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x70]
call fcn.00515470
xorps xmm0, xmm0
mov eax, 4
movdqa xmmword [esp + 0x24], xmm0
mov word [esp + 0x32], ax
xor ecx, ecx
mov eax, 0x2aaaaaab
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x7c]
sub ecx, dword [esi + 0x78]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x512856
mov esi, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x14], ecx
lea ebx, [ebx]
xorps xmm0, xmm0
mov eax, 3
movdqa xmmword [esp + 0x34], xmm0
mov word [esp + 0x42], ax
lea eax, [esp + 0x34]
mov byte [esp + 0xf0], 0x17
push eax
mov eax, dword [esp + 0x20]
push edi
mov eax, dword [eax + 0x78]
add eax, ecx
push eax
call fcn.0050ef90
mov eax, dword [esp + 0x24]
cmp eax, esi
jb 0x512805
test esi, esi
jne 0x5127d1
lea edi, [esi + 0x10]
jmp 0x5127dc
lea edi, [esi + 1]
shr edi, 1
add edi, esi
cmp edi, esi
jbe 0x512801
mov ecx, dword [esp + 0x18]
mov eax, edi
shl eax, 4
push eax
shl esi, 4
push esi
push dword [esp + 0x34]
call fcn.00515eb0
mov esi, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], esi
mov edi, dword [esp + 0x18]
movdqu xmm0, xmmword [esp + 0x34]
mov ecx, eax
inc dword [esp + 0x10]
inc eax
shl ecx, 4
add ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
xor eax, eax
add dword [esp + 0x14], 0x60
movdqu xmmword [ecx], xmm0
mov word [esp + 0x42], ax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x7c]
sub ecx, dword [eax + 0x78]
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esp + 0x14]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x512790
xorps xmm0, xmm0
mov edx, 0x405
movdqa xmmword [esp + 0x34], xmm0
mov word [esp + 0x42], dx
mov dword [esp + 0x3c], str.embinfo
mov dword [esp + 0x34], 7
mov byte [esp + 0xf0], 0x19
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x64], ecx
jb 0x51290b
test ecx, ecx
jne 0x5128e5
mov dword [esp + 0x68], 0x10
mov ecx, dword [edi]
test ecx, ecx
je 0x5128ad
mov eax, dword [ecx + 4]
add eax, 0x200
cmp eax, dword [ecx]
jbe 0x5128cd
mov ecx, 0x200
cmp dword [edi + 4], ecx
cmova ecx, dword [edi + 4]
push ecx
mov ecx, edi
call fcn.00516160
test al, al
jne 0x5128cd
xor edx, edx
mov dword [esp + 0x6c], edx
jmp 0x51290f
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
lea edx, [ecx + 0xc]
add edx, eax
add eax, 0x200
mov dword [ecx + 4], eax
mov dword [esp + 0x6c], edx
jmp 0x51290f
lea eax, [ecx + 1]
shr eax, 1
add eax, ecx
shl ecx, 5
mov dword [esp + 0x68], eax
shl eax, 5
push eax
push ecx
push dword [esp + 0x74]
mov ecx, edi
call fcn.00515eb0
mov edx, eax
mov dword [esp + 0x6c], edx
jmp 0x51290f
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
movdqu xmm0, xmmword [esp + 0x34]
shl eax, 5
movdqu xmmword [eax + edx], xmm0
mov eax, dword [esp + 0x64]
movdqu xmm0, xmmword [esp + 0x24]
shl eax, 5
movdqu xmmword [eax + edx + 0x10], xmm0
inc dword [esp + 0x64]
xor eax, eax
xorps xmm0, xmm0
mov word [esp + 0x32], ax
movq qword [esp + 0x54], xmm0
movdqa xmmword [esp + 0x44], xmm0
movdqa xmmword [esp + 0x44], xmm0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x100
movdqa xmmword [esp + 0xb4], xmm0
mov dword [esp + 0xc4], eax
lea eax, [esp + 0x44]
movdqa xmmword [esp + 0xa4], xmm0
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], 0x1c
push eax
lea ecx, [esp + 0x68]
call fcn.00516480
mov ecx, dword [esp + 0x50]
lea eax, [ecx + 1]
cmp eax, dword [esp + 0x54]
jbe 0x5129eb
push 1
lea ecx, [esp + 0x48]
call fcn.00517d00
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 0x512a06
xor ecx, ecx
jmp 0x512a19
mov ecx, edx
lea esi, [ecx + 1]
jmp 0x512a10
mov al, byte [ecx]
inc ecx
test al, al
jne 0x512a10
sub ecx, esi
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.004eec50
push dword [esp + 0xb0]
call fcn.005c72cc
add esp, 4
push dword [esp + 0xac]
call fcn.005c4337
add esp, 4
push dword [esp + 0x4c]
call fcn.005c72cc
add esp, 4
push dword [esp + 0x48]
call fcn.005c4337
mov edi, dword [esp + 0x7c]
add esp, 4
test edi, edi
je 0x512aa9
cmp dword [edi], 0
je 0x512a83
mov esi, dword [edi]
cmp esi, dword [edi + 8]
je 0x512a83
push dword [edi]
mov esi, dword [esi + 8]
call fcn.005c72cc
add esp, 4
mov dword [edi], esi
test esi, esi
jne 0x512a67
jmp 0x512a95
mov eax, dword [edi]
test eax, eax
je 0x512a95
cmp eax, dword [edi + 8]
jne 0x512a95
mov dword [eax + 4], 0
push dword [edi + 0x10]
call fcn.005c4337
add esp, 4
push edi
call fcn.005c4337
add esp, 4
push dword [esp + 0x84]
call fcn.005c72cc
add esp, 4
push dword [esp + 0x80]
call fcn.005c4337
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.005c6c09
mov esp, ebp
pop ebp
ret 8